Skip to content

Commit 4cf8693

Browse files
committed
ci(fix): Exercise declared VCS matrix
why: Missing Subversion excluded native tests, uv needed explicit matrix interpreter binding, and automatic retries hid native regressions. what: - Install and verify git, mercurial, and subversion prerequisites - Bind UV_PYTHON and assert the matrix interpreter with a frozen lock - Fail on first test failure across two xdist workers
1 parent 45b51f3 commit 4cf8693

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

‎.github/workflows/tests.yml‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ on:
1414
jobs:
1515
build:
1616
runs-on: ubuntu-latest
17+
env:
18+
UV_PYTHON: ${{ matrix.python-version }}
1719
strategy:
1820
matrix:
1921
python-version: ['3.11', '3.15']
@@ -27,8 +29,17 @@ jobs:
2729
- name: Set up Python ${{ matrix.python-version }}
2830
run: uv python install ${{ matrix.python-version }}
2931

32+
- name: Install native VCS tools
33+
run: |
34+
sudo apt-get update
35+
sudo apt-get install --yes --no-install-recommends git mercurial subversion
36+
git --version
37+
hg --version
38+
svn --version --quiet
39+
svnadmin --version --quiet
40+
3041
- name: Install dependencies
31-
run: uv sync --all-extras --dev
42+
run: uv sync --frozen --all-extras --dev
3243

3344
- name: Lint with ruff check
3445
run: uv run ruff check .
@@ -43,9 +54,10 @@ jobs:
4354
run: |
4455
python -V
4556
uv run python -V
57+
uv run python -c 'import os, sys; assert ".".join(map(str, sys.version_info[:2])) == os.environ["UV_PYTHON"]'
4658
4759
- name: Test with pytest
48-
run: uv run py.test --cov=./ --cov-append --cov-report=xml
60+
run: uv run py.test --no-showlocals --reruns 0 -ra -n 2 --dist worksteal --cov=./ --cov-append --cov-report=xml
4961
env:
5062
COV_CORE_SOURCE: .
5163
COV_CORE_CONFIG: .coveragerc

0 commit comments

Comments
 (0)