File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 7171 # Ignore 32 bit architectures
7272 CIBW_ARCHS : " auto64"
7373 CIBW_PROJECT_REQUIRES_PYTHON : " >=3.10,<3.14"
74+ # Keep these in sync with Python CI job `cibw-dev-env-smoke-test`
75+ # in .github/workflows/python-ci.yml to catch import-time regressions early.
7476 CIBW_BEFORE_TEST : " uv sync --directory {project} --only-group dev --no-install-project"
7577 CIBW_TEST_COMMAND : " uv run --directory {project} pytest tests/avro/test_decoder.py"
7678 # Skip free-threaded (PEP 703) builds until we evaluate decoder_fast support
Original file line number Diff line number Diff line change @@ -200,3 +200,26 @@ jobs:
200200 merge-multiple : true
201201 - name : Generate coverage report (75%) # Coverage threshold should only increase over time — never decrease it!
202202 run : COVERAGE_FAIL_UNDER=75 make coverage-report
203+
204+ cibw-dev-env-smoke-test :
205+ runs-on : ubuntu-latest
206+ steps :
207+ - uses : actions/checkout@v6
208+ - uses : actions/setup-python@v6
209+ with :
210+ python-version : ' 3.12'
211+ - name : Install UV
212+ uses : astral-sh/setup-uv@v7
213+ with :
214+ enable-cache : true
215+ # Why this exists:
216+ # Catch import-time regressions (e.g., global conftest optional deps)
217+ # in the same dev-only environment used by cibuildwheel wheel tests.
218+ # Keep this in sync with wheel build test setup in
219+ # .github/workflows/pypi-build-artifacts.yml:
220+ # CIBW_BEFORE_TEST: uv sync --directory {project} --only-group dev --no-install-project
221+ # CIBW_TEST_COMMAND: uv run --directory {project} pytest tests/avro/test_decoder.py
222+ - name : Mirror wheel CIBW_BEFORE_TEST
223+ run : uv sync --directory . --only-group dev --no-install-project
224+ - name : Mirror wheel CIBW_TEST_COMMAND (collection only)
225+ run : uv run --directory . pytest --collect-only tests/avro/test_decoder.py -q
You can’t perform that action at this time.
0 commit comments