Skip to content

Commit

Permalink
Update CI to run tests on new Python, Django, and DRF
Browse files Browse the repository at this point in the history
  • Loading branch information
philipstarkey committed Mar 8, 2024
1 parent abed9de commit f537af9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 16 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ jobs:
fail-fast: false
matrix:
python-version:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down
4 changes: 2 additions & 2 deletions requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# Note: These packages are stored outside of the setup.py, to maintain a
# single source of truth, and allow the extras to be installed in isolation.
django-test-plus==1.4.0
Django>=2.1.15,<4
djangorestframework>=3.9.4
Django>=3.2,<5.1
djangorestframework>=3.12
pytest-cov==2.6.1
pytest-django==3.4.8
pytest==4.4.1
26 changes: 14 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,29 @@ envlist =
flake8
codecov
docs
{py36,py37,py38}-django{21,22}-drf{39,310,311}
{py36,py37,py38}-django{30}-drf{310,311}
{py38,py39}-django{32}-drf{312,313,314,315}
{py38,py39,py310,py311,py312}-django{42,50}-drf{312,313,314,315}

[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38,black,flake8,docs
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312,black,flake8,docs

[testenv]
passenv = CI TRAVIS TRAVIS_*
setenv =
PYTHONDONTWRITEBYTECODE=1
commands = pytest {posargs}
deps =
django21: Django==2.1.15
django22: Django==2.2.8
django30: Django==3.0.0
drf39: djangorestframework==3.9.4
drf310: djangorestframework==3.10.3
drf311: djangorestframework==3.11.0
django32: Django==3.2
django42: Django==4.2
django50: Django==5.0
drf312: djangorestframework==3.12
drf313: djangorestframework==3.13
drf314: djangorestframework==3.14
drf315: git+https://github.com/encode/django-rest-framework.git@a2eabfc8673656493b76021b87d985f4ad647a02
extras = test

[testenv:black]
Expand Down

0 comments on commit f537af9

Please sign in to comment.