Update CI job with linting and deprecated command #110
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.13" | |
- run: python -m pip install flake8 | |
- run: flake8 . | |
test: | |
needs: | |
- lint | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
os: | |
- "ubuntu-latest" | |
python-version: | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
- "3.13" | |
django-version: | |
- "4.2" # LTS | |
- "5.0" | |
- "5.1" | |
exclude: | |
- django-version: "5.0" # django 5.0 supports python >=3.10 | |
python-version: "3.9" | |
- django-version: "5.1" # django 5.1 supports python >=3.10 | |
python-version: "3.9" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- run: python -m pip install -U pip setuptools wheel | |
- run: python -m pip install . | |
- run: python -m pip install pytest pytest-cov pytest-django | |
- run: python -m pip install django~=${{ matrix.django-version }}.0 | |
- run: python -m pytest |