Skip to content

Commit 223b1c7

Browse files
committed
add ci smoke test
1 parent 7abb67a commit 223b1c7

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/workflows/pypi-build-artifacts.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ jobs:
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

.github/workflows/python-ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)