use dependency groups in ci.yml #171
Workflow file for this run
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: CI | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: | |
| # Django 3.2 | |
| - django-version: "32" | |
| python-version: "3.10" | |
| # Django 4.2 | |
| - django-version: "42" | |
| python-version: "3.10" | |
| - django-version: "42" | |
| python-version: "3.11" | |
| - django-version: "42" | |
| python-version: "3.12" | |
| # Django 5.2 | |
| - django-version: "52" | |
| python-version: "3.10" | |
| - django-version: "52" | |
| python-version: "3.11" | |
| - django-version: "52" | |
| python-version: "3.12" | |
| - django-version: "52" | |
| python-version: "3.13" | |
| - django-version: "52" | |
| python-version: "3.14" | |
| # Django 6.0 | |
| - django-version: "60" | |
| python-version: "3.12" | |
| - django-version: "60" | |
| python-version: "3.13" | |
| - django-version: "60" | |
| python-version: "3.14" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies using specifc django dependency group | |
| run: uv sync --all-extras --group django${{ matrix.django-version }} | |
| - name: Run tests | |
| run: uv run coverage run -m django test --settings=tests.settings --pythonpath=. -v 2 | |
| - name: Report coverage to Codecov | |
| uses: codecov/codecov-action@v3 |