Skip to content

Update pre-commit hooks #452

Update pre-commit hooks

Update pre-commit hooks #452

Workflow file for this run

---
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