Bug/max tokens (#10) #76
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 tests and upload coverage | |
| on: push | |
| jobs: | |
| test: | |
| name: Run tests and collect coverage | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: 'true' | |
| activate-environment: "true" | |
| python-version: "3.13" | |
| - name: Install dependencies | |
| run: uv sync --all-extras --dev | |
| - name: Run tests with coverage | |
| run: uv run pytest --cov --junitxml=junit.xml -o junit_family=legacy | |
| - name: Run Mypy | |
| run: uv run mypy src --cobertura-xml-report mypy_report | |
| - name: Upload mypy coverage | |
| uses: codecov/codecov-action@v5 | |
| if: "!cancelled()" | |
| with: | |
| files: ./mypy_report/cobertura.xml | |
| flags: mypy | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| slug: ${{ github.repository }} | |
| fail_ci_if_error: 'true' | |
| - name: Upload pytest cov | |
| if: ${{ !cancelled() }} | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: ./junit.xml | |
| flags: pytest | |
| slug: ${{ github.repository }} | |
| fail_ci_if_error: 'true' | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Upload test results | |
| if: ${{ !cancelled() }} | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: ./junit.xml | |
| report_type: test_results | |
| slug: ${{ github.repository }} | |
| fail_ci_if_error: 'true' | |
| token: ${{ secrets.CODECOV_TOKEN }} |