From 7a725f2e3267f1c3bb4920cd3bff3a9ff1d7eb6e Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Sun, 29 Jan 2023 14:16:47 +0000 Subject: [PATCH] Add SQLAlchemy 1.4 and 2.0 to the test matrix --- .github/workflows/tests.yml | 3 ++- tox.ini | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bc28211..76758de 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,6 +24,7 @@ jobs: # TODO: add windows-latest os: [ubuntu-latest, macos-latest] python: ['3.7', '3.8', '3.9', '3.10', '3.11', 'pypy-3.9'] + sqla: ['sqlalchemy<2', 'sqlalchemy>=2'] fail-fast: false runs-on: ${{ matrix.os }} steps: @@ -33,4 +34,4 @@ jobs: python-version: ${{ matrix.python }} - run: python -m pip install --upgrade pip wheel - run: pip install tox tox-gh-actions - - run: tox + - run: SQLALCHEMY_VERSION="${{ matrix.sqla }}" tox diff --git a/tox.ini b/tox.ini index 61e269c..8d891da 100644 --- a/tox.ini +++ b/tox.ini @@ -14,6 +14,7 @@ python = [testenv] commands= pip install -e . + pip install {env:SQLALCHEMY_VERSION:sqlalchemy>=2} pytest -p no:logging deps= pytest