🔧 Update CI/tests to Python 3.14 and Django 6.0 (#225) #191
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: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| env: | |
| PYTHONDONTWRITEBYTECODE: true | |
| PYTHONPATH: test_project | |
| strategy: | |
| # By default, GitHub will maximize the number of jobs run in parallel | |
| # depending on the available runners on GitHub-hosted virtual machines. | |
| # max-parallel: 8 | |
| fail-fast: false | |
| matrix: | |
| python-version: | |
| - "3.10" | |
| - "3.11" | |
| - "3.12" | |
| - "3.13" | |
| - "3.14" | |
| - "3.14t" | |
| django-version: | |
| - "4.2" # LTS | |
| - "5.1" | |
| - "5.2" # LTS | |
| - "6.0" | |
| drf-version: | |
| - "" | |
| # - "3.12" | |
| # - "3.13" | |
| - "3.15" | |
| - "3.16" | |
| exclude: | |
| # Django 6.0 is compatible with Python 3.12+ | |
| - python-version: "3.10" | |
| django-version: "6.0" | |
| - python-version: "3.11" | |
| django-version: "6.0" | |
| # Django 4.2 is not compatible with Python 3.14+ | |
| - python-version: "3.14" | |
| django-version: "4.2" | |
| - python-version: "3.14t" | |
| django-version: "4.2" | |
| # Django 5.1 is not compatible with Python 3.14+ | |
| - python-version: "3.14" | |
| django-version: "5.1" | |
| - python-version: "3.14t" | |
| django-version: "5.1" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: "pip" | |
| cache-dependency-path: '**/setup.cfg' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install uv | |
| - name: Install Django ${{ matrix.django-version }} | |
| if: ${{ matrix.drf-version == '' }} | |
| run: | | |
| python -m uv pip install --system "Django~=${{ matrix.django-version }}.0" | |
| - name: Install DRF ${{ matrix.drf-version }} and Django ${{ matrix.django-version }} | |
| if: ${{ matrix.drf-version }} | |
| run: | | |
| python -m uv pip install --system pytz "djangorestframework~=${{ matrix.drf-version }}.0" "Django~=${{ matrix.django-version }}.0" | |
| - name: Install dependencies | |
| run: | | |
| python -m uv pip install --system -e ".[test]" | |
| - run: | | |
| pytest . |