add gemini 3.8 flash, muse spark 1.3, gpt-6 astra #659
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: Run Unit Tests | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| branches: | |
| - "main" | |
| concurrency: | |
| # Cancel previous jobs | |
| group: unit_tests-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| unit-tests: | |
| runs-on: ubuntu-latest | |
| env: | |
| FILE_WRITING_ALLOWED: true | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v5 | |
| - id: setup-python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12.3" | |
| - name: Install poetry | |
| uses: snok/install-poetry@v1 | |
| with: | |
| virtualenvs-create: true | |
| installer-parallel: true | |
| virtualenvs-in-project: true | |
| - name: Load cached venv | |
| id: cached-poetry-dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: .venv | |
| key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} | |
| - name: Install dependencies | |
| run: poetry install --no-interaction --no-root | |
| - name: "Run the unit tests" | |
| if: ${{ !cancelled() }} | |
| run: poetry run pytest ./code_tests/unit_tests |