Skip to content

Commit 7a725f2

Browse files
Add SQLAlchemy 1.4 and 2.0 to the test matrix
1 parent 5acd794 commit 7a725f2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
# TODO: add windows-latest
2525
os: [ubuntu-latest, macos-latest]
2626
python: ['3.7', '3.8', '3.9', '3.10', '3.11', 'pypy-3.9']
27+
sqla: ['sqlalchemy<2', 'sqlalchemy>=2']
2728
fail-fast: false
2829
runs-on: ${{ matrix.os }}
2930
steps:
@@ -33,4 +34,4 @@ jobs:
3334
python-version: ${{ matrix.python }}
3435
- run: python -m pip install --upgrade pip wheel
3536
- run: pip install tox tox-gh-actions
36-
- run: tox
37+
- run: SQLALCHEMY_VERSION="${{ matrix.sqla }}" tox

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ python =
1414
[testenv]
1515
commands=
1616
pip install -e .
17+
pip install {env:SQLALCHEMY_VERSION:sqlalchemy>=2}
1718
pytest -p no:logging
1819
deps=
1920
pytest

0 commit comments

Comments
 (0)