File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -19,32 +19,43 @@ jobs:
1919 python-version : ["3.9", "3.13", "3.14.0-rc.2"]
2020 django-version : ["4.2.*", "5.2.*"]
2121 exclude :
22+ # Django 5.2 only supports Python 3.10 and above
2223 - python-version : " 3.9"
2324 django-version : " 5.2.*"
25+ # No need to test all combinations on Ubuntu
2426 - os : " ubuntu-latest"
2527 python-version : " 3.9"
2628 - os : " ubuntu-latest"
2729 python-version : " 3.14.0-rc.2"
28-
29-
3030 steps :
3131 - uses : actions/checkout@v4
3232 - name : Set up Python ${{ matrix.python-version }}
3333 uses : actions/setup-python@v3
3434 with :
3535 python-version : ${{ matrix.python-version }}
36+
3637 - name : Install uv
3738 uses : astral-sh/setup-uv@v6
3839 with :
3940 version : " 0.8.14"
41+
4042 - name : Install dependencies
4143 run : |
4244 uv sync --locked --dev --no-install-package django
4345 uv pip install "django==${{ matrix.django-version }}"
4446 uv pip freeze
47+
4548 - name : Lint with pre-commit
4649 run : |
4750 uv run pre-commit run --all-files --show-diff-on-failure
51+
4852 - name : Test with pytest
4953 run : |
50- uv run pytest --cov-report xml:coverage.xml --cov-fail-under=80
54+ echo "DJANGO_VERSION=$(echo ${{ matrix.django-version }} | tr '*' 'x')" >> $GITHUB_ENV
55+ uv run pytest --cov-report xml:coverage-${{ matrix.os }}-py${{ matrix.python-version}}-dj${DJANGO_VERSION}.xml --cov-fail-under=80
56+
57+ - name : Upload coverage
58+ 59+ with :
60+ name : coverage-report
61+ path : coverage-${{ matrix.os }}-py${{ matrix.python-version}}-dj${DJANGO_VERSION}.xml
You can’t perform that action at this time.
0 commit comments