Support Django 5.2 for dicts
#192
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: | |
| branches: | |
| - master | |
| pull_request: | |
| jobs: | |
| tests: | |
| name: Python ${{ matrix.python-version }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| max-parallel: 5 | |
| matrix: | |
| python-version: | |
| - "3.8" | |
| - "3.9" | |
| - "3.10" | |
| - "3.11" | |
| - "3.12" | |
| - "3.13" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Upgrade packaging tools | |
| run: python -m pip install --upgrade pip setuptools virtualenv | |
| - name: Install dependencies | |
| run: python -m pip install --upgrade tox | |
| - name: Run tox targets for ${{ matrix.python-version }} | |
| run: | | |
| ENV_PREFIX=$(tr -C -d "0-9" <<< "${{ matrix.python-version }}") | |
| TOXENV=$(tox --listenvs | grep "^py$ENV_PREFIX" | tr '\n' ',') python -m tox | |
| - name: Report coverage | |
| if: matrix.python-version == '3.13' && github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'synchronize') | |
| uses: 5monkeys/cobertura-action@master | |
| with: | |
| path: coverage.xml | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} | |
| minimum_coverage: 85 | |
| show_line: true | |
| show_branch: true | |
| show_missing: true | |
| link_missing_lines: true | |
| link_missing_lines_source_dir: "src" | |
| type-check: | |
| name: Run type checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - name: Upgrade packaging tools | |
| run: python -m pip install --upgrade pip setuptools virtualenv | |
| - name: Install dependencies | |
| run: python -m pip install --upgrade tox | |
| - name: Run checks | |
| run: "TOXENV=type-check python -m tox" | |
| lint: | |
| name: Lint | |
| uses: less-action/reusables/.github/workflows/pre-commit.yaml@v10 | |
| with: | |
| python-version: "3.13" | |
| check-build: | |
| name: Check packaging | |
| uses: less-action/reusables/.github/workflows/python-test-build.yaml@v10 |