Fixing Django 5.0+ not being recognized as a compatible version #12
Workflow file for this run
This file contains 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: Continuous Integration | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
paths-ignore: | |
- '**.md' | |
- 'LICENSE' | |
permissions: read-all | |
jobs: | |
checks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Set up Python | |
uses: actions/setup-python@master | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: pip install tox poetry | |
- name: Safety Check | |
run: tox -e safety | |
- name: License Check | |
run: tox -e liccheck | |
- name: Code style check | |
run: | | |
tox -e black | |
- name: Static type check | |
run: tox -e mypy | |
- name: Coverage Check | |
run: tox -e coverage | |
unit-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
django-version: ["4.0", "4.1", "4.2", "5.0", "5.1"] | |
exclude: | |
- python-version: 3.9 | |
django-version: 5.0 | |
- python-version: 3.9 | |
django-version: 5.1 | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/setup-python@master | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: pip install tox poetry | |
- name: Unit tests and coverage | |
run: | | |
tox -e py${{ matrix.python-version }}-dj${{ matrix.django-version }} |