Skip to content

Commit 7216135

Browse files
Add flask 2 (<3.0) and flask 3 (>=3.0) to test matrix and do not fast-fail (#577)
Co-authored-by: Peter Doggart <[email protected]>
1 parent a65dbe7 commit 7216135

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ jobs:
1313
unit-tests:
1414
runs-on: ubuntu-latest
1515
strategy:
16+
fail-fast: false
1617
matrix:
1718
python-version: ["3.8", "3.9", "3.10", "3.11", "pypy3.8"]
19+
flask: ["<3.0.0", ">=3.0.0"]
1820
steps:
1921
- name: Set up Python ${{ matrix.python-version }}
2022
uses: actions/setup-python@v4
@@ -25,6 +27,7 @@ jobs:
2527
- name: Install dependencies
2628
run: |
2729
python -m pip install --upgrade pip
30+
pip install "flask${{ matrix.flask }}"
2831
pip install ".[test]"
2932
- name: Test with inv
3033
run: inv cover qa

tox.ini

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py{38, 39, 310, 311}, pypy3.8, doc
7+
envlist =
8+
py{38, 39, 310, 311}-flask2,
9+
py{311}-flask3
10+
pypy3.8
11+
doc
812

913
[testenv]
1014
commands = {posargs:inv test qa}
1115
deps =
16+
flask2: flask<3.0.0
17+
flask3: flask>=3.0.0
1218
-r{toxinidir}/requirements/test.pip
1319
-r{toxinidir}/requirements/develop.pip
1420

0 commit comments

Comments
 (0)