Skip to content

Commit

Permalink
Add flask 2 (<3.0) and flask 3 (>=3.0) to test matrix and do not fast…
Browse files Browse the repository at this point in the history
…-fail (#577)

Co-authored-by: Peter Doggart <[email protected]>
  • Loading branch information
foarsitter and peter-doggart authored Dec 10, 2023
1 parent a65dbe7 commit 7216135
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "pypy3.8"]
flask: ["<3.0.0", ">=3.0.0"]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand All @@ -25,6 +27,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install "flask${{ matrix.flask }}"
pip install ".[test]"
- name: Test with inv
run: inv cover qa
Expand Down
8 changes: 7 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@
# and then run "tox" from this directory.

[tox]
envlist = py{38, 39, 310, 311}, pypy3.8, doc
envlist =
py{38, 39, 310, 311}-flask2,
py{311}-flask3
pypy3.8
doc

[testenv]
commands = {posargs:inv test qa}
deps =
flask2: flask<3.0.0
flask3: flask>=3.0.0
-r{toxinidir}/requirements/test.pip
-r{toxinidir}/requirements/develop.pip

Expand Down

0 comments on commit 7216135

Please sign in to comment.