Skip to content

Commit

Permalink
chore: dry tests, use newer DRF on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bertonha authored and auvipy committed Dec 15, 2021
1 parent 554f381 commit 5f18092
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 21 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,6 @@ jobs:
fail-fast: false
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9']
django-version: ['2.2', '3.2']
include:
- django-version: '4.0'
python-version: '3.8'
- django-version: '4.0'
python-version: '3.9'
- django-version: 'main'
python-version: '3.8'
- django-version: 'main'
python-version: '3.9'

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -51,8 +41,6 @@ jobs:
- name: Tox tests
run: |
tox -v
env:
DJANGO: ${{ matrix.django-version }}
- name: Upload coverage
uses: codecov/codecov-action@v1
Expand Down
2 changes: 0 additions & 2 deletions tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,3 @@
PUSH_NOTIFICATIONS_SETTINGS = {
"WP_CLAIMS": {"sub": "mailto: [email protected]"}
}

USE_DEPRECATED_PYTZ = True
2 changes: 0 additions & 2 deletions tests/settings_unique.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,3 @@
"WP_CLAIMS": {"sub": "mailto: [email protected]"},
"UNIQUE_REG_ID": True
}

USE_DEPRECATED_PYTZ = True
9 changes: 4 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
skipsdist = True
usedevelop = true
envlist =
py{36,37,38,39}-dj{22,32,40}
py{38,39}-djmain
py{36,37,38,39}-dj{22,32}
py{38,39}-dj{40,main}
flake8

[gh-actions]
Expand Down Expand Up @@ -35,8 +35,7 @@ deps =
pytest-cov
pytest-django
pywebpush
pytz
djangorestframework==3.11.0
djangorestframework
dj22: Django>=2.2,<3.0
dj32: Django>=3.2,<3.3
dj40: Django>=4.0,<4.1
Expand All @@ -45,7 +44,7 @@ deps =
[testenv:flake8]
commands = flake8 --exit-zero
deps =
flake8==3.5.0
flake8
flake8-isort
flake8-quotes

Expand Down

0 comments on commit 5f18092

Please sign in to comment.