Skip to content

Commit 90c425b

Browse files
authored
Merge pull request #99 from kevin-brown/update-test-matrix
Update test matrix
2 parents f34b194 + 0505630 commit 90c425b

File tree

4 files changed

+18
-10
lines changed

4 files changed

+18
-10
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
tests:
1313
name: "Python ${{ matrix.python-version }}"
14-
runs-on: "ubuntu-latest"
14+
runs-on: "ubuntu-20.04"
1515
services:
1616
redis:
1717
image: redis
@@ -24,7 +24,7 @@ jobs:
2424
- 6379:6379
2525
strategy:
2626
matrix:
27-
python-version: ["3.6", "3.7", "3.8"]
27+
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
2828
steps:
2929
- uses: "actions/checkout@v2"
3030
- uses: "actions/setup-python@v2"

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Yup - `over on readthedocs.org`_.
3636
Supported versions
3737
------------------
3838

39-
Python 3.6+ is supported. Django 2.0+ is supported.
39+
Python 3.6+ is supported. Django 2.2+ is supported.
4040

4141

4242
Do you have tests?

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@ classifiers = [
2626
"Programming Language :: Python :: 3.7",
2727
"Programming Language :: Python :: 3.8",
2828
"Programming Language :: Python :: 3.9",
29+
"Programming Language :: Python :: 3.10",
2930
]
3031
packages = [{ include = "cacheback" }]
3132
include = ["LICENSE"]
3233

3334
[tool.poetry.dependencies]
34-
python = ">=3.6,<4"
35+
python = ">=3.6.2,<4"
3536
importlib-metadata = {version = "*", python = "<3.8"}
3637

3738
django = ">=2"
@@ -45,11 +46,13 @@ pytest-django = ">=4.1"
4546
pytest-cov = ">=2.10"
4647
pytest-isort = ">=1.2"
4748
pytest-flake8 = ">=1.0"
48-
pytest-black = ">=0.3"
49+
flake8 = "<5"
50+
pytest-black = {version = ">=0.3"}
4951
freezegun = ">=1.0"
5052
coverage = {version = ">=5.0", extras = ["toml"]}
5153
celery = ">=4"
5254
django-rq = ">=2"
55+
typing_extensions = { version = ">=3.10", python = "<3.10" }
5356

5457
[tool.poetry.extras]
5558
celery = ["celery"]

tox.ini

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,31 @@
11
[tox]
22
isolated_build = true
3-
envlist = py{36,37,38}-django{20,21,22,30,31}
3+
envlist =
4+
py{36,37,38,39}-django{22,30,31}
5+
py{36,37,38,39,310}-django{32}
6+
py{38,39,310}-django{40}
47

58
[gh-actions]
69
python =
710
3.6: py36
811
3.7: py37
912
3.8: py38
13+
3.9: py39
14+
3.10: py310
1015

1116
[testenv]
1217
setenv = PYTHONPATH={toxinidir}
1318
deps =
14-
django20: Django>=2.0,<2.1
15-
django21: Django>=2.1,<2.2
1619
django22: Django>=2.2,<2.3
1720
django30: Django>=3.0,<3.1
1821
django31: Django>=3.1,<3.2
19-
whitelist_externals =
22+
django32: Django>=3.2,<3.3
23+
django40: Django>=4.0,<4.1
24+
allowlist_externals =
2025
poetry
2126
sh
2227
skip_install = true
2328
commands =
2429
poetry export --dev --without-hashes -o {toxworkdir}/requirements.txt
2530
sh -c 'grep -v "^[dD]jango==" {toxworkdir}/requirements.txt | poetry run pip install --no-deps -r /dev/stdin'
26-
poetry run pytest --isort --flake8 --black --cov
31+
pytest --isort --flake8 --black --cov

0 commit comments

Comments
 (0)