Benchmarking and Core Logic Updates #23
Workflow file for this run
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: | |
| pull_request: | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: Install Poetry | |
| uses: abatilo/actions-poetry@v4 | |
| - name: Setup local virtual environment | |
| run: | | |
| poetry config virtualenvs.create true --local | |
| poetry config virtualenvs.in-project true --local | |
| - name: Setup Poetry cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: ./.venv | |
| key: venv-${{ hashFiles('**/poetry.lock') }} | |
| - name: Install dependencies | |
| run: poetry install --with dev | |
| - name: Run Ruff formatter check | |
| run: poetry run ruff format --check . | |
| - name: Run Ruff linter | |
| run: poetry run ruff check . | |
| test: | |
| runs-on: ubuntu-latest | |
| env: | |
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: Install Poetry | |
| uses: abatilo/actions-poetry@v4 | |
| - name: Setup local virtual environment | |
| run: | | |
| poetry config virtualenvs.create true --local | |
| poetry config virtualenvs.in-project true --local | |
| - name: Set up Poetry cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: ./.venv | |
| key: venv-${{ hashFiles('**/poetry.lock') }} | |
| - name: Install dependencies | |
| run: poetry install --with dev | |
| - name: Run unit tests | |
| run: poetry run pytest tests/unit/**/*.py --import-mode=importlib | |
| - name: Run integration tests | |
| run: poetry run pytest tests/integration |