-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145 from communitiesuk/bau/tox-testing
Add matrix testing via tox
- Loading branch information
Showing
4 changed files
with
71 additions
and
8 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta" | |
[project] | ||
name = "funding-service-design-utils" | ||
|
||
version = "2.0.51" | ||
version = "2.0.52" | ||
|
||
authors = [ | ||
{ name="DLUHC", email="[email protected]" }, | ||
|
@@ -25,6 +25,7 @@ dependencies = [ | |
"PyYAML>=6.0,<7.0", | ||
"python-dotenv>=0.20.0,<0.21.0", | ||
"rich>=12.4.4,<13.0.0", | ||
# If adding support for a new major/minor Flask version below, remember to add a tox env to matrix test it. | ||
"Flask>=2.1.1,<3.0.0", | ||
"python-json-logger>=2.0.2,<3.0.0", | ||
"gunicorn>=20.1.0,<21.0.0", | ||
|
@@ -42,3 +43,51 @@ dependencies = [ | |
|
||
[project.urls] | ||
"Homepage" = "https://github.com/communitiesuk/funding-service-design-utils" | ||
|
||
[tool.tox] | ||
legacy_tox_ini = """ | ||
[tox] | ||
envlist = py310-A, py310-B, py311-A, py311-B, py312-A, py312-B | ||
[gh-actions] | ||
python = | ||
3.10: py310 | ||
3.11: py311 | ||
3.12: py312 | ||
[testenv] | ||
commands = py.test | ||
deps = | ||
pytest | ||
-r requirements-dev.txt | ||
[testenv:py310-A] | ||
basepython = python3.10 | ||
deps = {[testenv]deps} | ||
Flask>=2.2,<2.3 | ||
[testenv:py310-B] | ||
basepython = python3.10 | ||
deps = {[testenv]deps} | ||
Flask>=2.3,<3.0 | ||
[testenv:py311-A] | ||
basepython = python3.11 | ||
deps = {[testenv]deps} | ||
Flask>=2.2,<2.3 | ||
[testenv:py311-B] | ||
basepython = python3.11 | ||
deps = {[testenv]deps} | ||
Flask>=2.3,<3.0 | ||
[testenv:py312-A] | ||
basepython = python3.12 | ||
deps = {[testenv]deps} | ||
Flask>=2.2,<2.3 | ||
[testenv:py312-B] | ||
basepython = python3.12 | ||
deps = {[testenv]deps} | ||
Flask>=2.3,<3.0 | ||
""" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# This file installs the dependencies required for running tests via tox, which we use in our github workflow (CI). | ||
tox==4.15.1 | ||
tox-gh-actions==3.2.0 |