Repository navigation
Update pre-commit hooks #452
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: test | |
| "on": | |
| pull_request: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read # to fetch code (actions/checkout) | |
| jobs: | |
| tox: | |
| name: ${{ matrix.env }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| env: | |
| - py310-django52 | |
| - py311-django52 | |
| - py312-django60 | |
| - py313-django60 | |
| - py314-django60 | |
| - dev | |
| - mypy | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 | |
| - name: Run tox | |
| run: uvx --with tox-uv tox -e "${{ matrix.env }}" | |
| - name: Upload coverage to Codecov | |
| if: ${{ (success() || failure()) && matrix.env != 'mypy' }} | |
| uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| flags: ${{ matrix.env }} | |
| fail_ci_if_error: true | |
| - name: Upload test results to Codecov | |
| if: ${{ (success() || failure()) && matrix.env != 'mypy' }} | |
| uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| report_type: test_results | |
| flags: ${{ matrix.env }} | |
| fail_ci_if_error: true |