Skip to content

Commit 1fb817b

Browse files
authored
Fixing nightly build failure (#2912)
Closes #2911 # Rationale for this change PR #2906 added imports to `tests/conftest.py` that require `pytest-lazy-fixture` and `sqlalchemy`. The nightly build's wheel test uses a minimal environment that doesn't include these dependencies, causing `tests/avro/test_decoder.py` to fail when loading `conftest.py`. ## Are these changes tested? Yes. Reproduced locally by creating a minimal venv with only the original test dependencies, reproduced the failure, then verified the fix resolves it. ## Are there any user-facing changes? No
1 parent 36ed4af commit 1fb817b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
# Ignore 32 bit architectures
7171
CIBW_ARCHS: "auto64"
7272
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.10,<3.14"
73-
CIBW_TEST_REQUIRES: "pytest==7.4.2 moto==5.0.1"
73+
CIBW_TEST_REQUIRES: "pytest==7.4.2 moto==5.0.1 pytest-lazy-fixture==0.6.3 sqlalchemy>=2.0.18,<3"
7474
CIBW_TEST_COMMAND: "pytest {project}/tests/avro/test_decoder.py"
7575
# Ignore tests for pypy since not all dependencies are compiled for it
7676
# and would require a local rust build chain

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
# Ignore 32 bit architectures
6666
CIBW_ARCHS: "auto64"
6767
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.10,<3.14"
68-
CIBW_TEST_REQUIRES: "pytest==7.4.2 moto==5.0.1"
68+
CIBW_TEST_REQUIRES: "pytest==7.4.2 moto==5.0.1 pytest-lazy-fixture==0.6.3 sqlalchemy>=2.0.18,<3"
6969
CIBW_TEST_COMMAND: "pytest {project}/tests/avro/test_decoder.py"
7070
# Ignore tests for pypy since not all dependencies are compiled for it
7171
# and would require a local rust build chain

0 commit comments

Comments
 (0)