Skip to content

Commit 1b794f9

Browse files
committed
[TE-5274] Add pytest 9.x CI matrix entry for subtest integration tests
Add a sixth matrix entry (Python 3.13 + pytest 9) so the 5 integration tests in test_integration_subtests.py are actually exercised in CI. Those tests require pytest >= 9.0 for built-in SubtestReport support, but uv.lock pins pytest to 8.4.1 (pytest 9 dropped Python 3.9). Uses uv run --with 'pytest>=9' rather than uv pip install because uv run syncs the environment to uv.lock before execution, which would silently revert a pip-installed override. The --with flag creates an ephemeral overlay that persists through the run, including subprocesses spawned via sys.executable.
1 parent 1dae10e commit 1b794f9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/python.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ jobs:
1414
strategy:
1515
matrix:
1616
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
17+
uv-run-flags: [""]
18+
include:
19+
- python-version: "3.13"
20+
uv-run-flags: "--with 'pytest>=9'"
1721

1822
env:
1923
BUILDKITE_ANALYTICS_TOKEN: ${{ secrets.BUILDKITE_ANALYTICS_TOKEN }}
@@ -29,7 +33,7 @@ jobs:
2933
- name: Install dependencies
3034
run: uv sync --all-extras
3135
- name: Run tests
32-
run: uv run pytest
36+
run: uv run ${{ matrix.uv-run-flags }} pytest
3337

3438
pylint:
3539
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)