Skip to content

Commit b57e57a

Browse files
committed
add pre-releas test workflow
1 parent ebae9de commit b57e57a

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,38 @@ jobs:
8484
path: coverage
8585
include-hidden-files: true
8686

87+
test-sqlalchemy-prerelease:
88+
# Run tests against the latest SQLAlchemy pre-release to catch compatibility
89+
# issues early. This job is intentionally not required by alls-green.
90+
runs-on: ubuntu-latest
91+
env:
92+
UV_PYTHON: "3.14"
93+
UV_RESOLUTION: highest
94+
UV_PRERELEASE: allow
95+
steps:
96+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
97+
- name: Set up Python
98+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
99+
with:
100+
python-version: "3.14"
101+
- name: Setup uv
102+
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
103+
with:
104+
enable-cache: true
105+
cache-dependency-glob: |
106+
pyproject.toml
107+
uv.lock
108+
- name: Install Dependencies
109+
run: uv sync --no-dev --group tests --upgrade-package sqlalchemy
110+
- name: Show SQLAlchemy version
111+
run: uv run python -c "import sqlalchemy; print(f'SQLAlchemy {sqlalchemy.__version__}')"
112+
- run: mkdir coverage
113+
- name: Test
114+
run: uv run bash scripts/test.sh
115+
env:
116+
COVERAGE_FILE: coverage/.coverage.sqlalchemy-prerelease
117+
CONTEXT: sqlalchemy-prerelease
118+
87119
coverage-combine:
88120
needs:
89121
- test

0 commit comments

Comments
 (0)