Initial PHANTOM open-source release #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11", "3.13"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -r requirements.txt | |
| - name: Compile | |
| run: python -m py_compile phantom.py phantom_cli.py core/*.py memory/__init__.py tools/*.py integrations/*.py evals/*.py tests/*.py | |
| - name: Unit tests | |
| run: python -m unittest discover -s tests -v | |
| - name: Offline evals | |
| run: | | |
| export PHANTOM_HOME="$PWD/.phantom-ci" | |
| export PHANTOM_WORKSPACE="$PWD" | |
| python phantom.py --evals |