Skip to content

ci(pre-commit): 👷 auto update #373

ci(pre-commit): 👷 auto update

ci(pre-commit): 👷 auto update #373

Workflow file for this run

name: coverage
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
run-tests-and-coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: Install dependencies
run: uv sync --all-extras --dev
- name: Run tests with coverage
run: |
uv run coverage run -m django test --settings=tests.test_settings
uv run coverage report
uv run coverage xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}