Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ on:
default: "checkout"
type: string

env:
# The SQLAlchemy every run installs: one exact version, never a range or the
# newest release, so a run changes only when this line does. A newer
# SQLAlchemy is a deliberate upgrade of its own.
SQLALCHEMY: "2.0.54"

jobs:
compliance:
name: Compliance suite (${{ matrix.db.name }}, seerdb ${{ inputs.seerdb }}, dialect ${{ inputs.dialect }})
Expand Down Expand Up @@ -79,7 +85,7 @@ jobs:
- name: Use this repository's newest PyPI release
if: inputs.dialect == 'pypi'
run: |
pip install "sqlalchemy-seerdb[test]"
pip install "sqlalchemy-seerdb[test]" "SQLAlchemy==$SQLALCHEMY"
VERSION=$(pip show sqlalchemy-seerdb | awk '/^Version:/{print $2}')
echo "newest sqlalchemy-seerdb release on PyPI: $VERSION"
git checkout -q "$VERSION"
Expand All @@ -89,7 +95,7 @@ jobs:
# `pip install .[test]` brings the released driver from PyPI, whatever the
# dependency floor resolves to: that is what `latest` (or `pypi`) tests.
- if: inputs.dialect != 'pypi'
run: pip install .[test]
run: pip install .[test] "SQLAlchemy==$SQLALCHEMY"
# A version pins the released driver to exactly that release.
- name: Pin the released driver
if: inputs.seerdb != 'latest' && inputs.seerdb != 'pypi' && inputs.seerdb != 'master' && inputs.seerdb != 'tag'
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
# The SQLAlchemy every run installs: one exact version, never a range or the
# newest release, so a run changes only when this line does. A newer
# SQLAlchemy is a deliberate upgrade of its own.
SQLALCHEMY: "2.0.54"

jobs:
# The gating job, and deliberately the only one. It needs no database, so it
# is fast and deterministic. What it protects is the thing that would silently
Expand All @@ -47,7 +53,7 @@ jobs:
# Install the built distribution rather than running from the source
# tree, so the entry point is exercised the way a user's install
# resolves it.
- run: pip install .
- run: pip install . "SQLAlchemy==$SQLALCHEMY"
- name: Dialect resolves from its entry point
run: |
python - <<'PY'
Expand Down
Loading