diff --git a/.github/workflows/pypi-build-artifacts.yml b/.github/workflows/pypi-build-artifacts.yml index c33b8041dc..088ae09f9e 100644 --- a/.github/workflows/pypi-build-artifacts.yml +++ b/.github/workflows/pypi-build-artifacts.yml @@ -70,8 +70,8 @@ jobs: # Ignore 32 bit architectures CIBW_ARCHS: "auto64" CIBW_PROJECT_REQUIRES_PYTHON: ">=3.10,<3.14" - CIBW_TEST_REQUIRES: "pytest==7.4.2 moto==5.0.1 pytest-lazy-fixture==0.6.3 sqlalchemy>=2.0.18,<3" - CIBW_TEST_COMMAND: "pytest {project}/tests/avro/test_decoder.py" + CIBW_BEFORE_TEST: "uv sync --directory {project} --only-group dev --no-install-project" + CIBW_TEST_COMMAND: "uv run --directory {project} pytest tests/avro/test_decoder.py" # Ignore tests for pypy since not all dependencies are compiled for it # and would require a local rust build chain CIBW_TEST_SKIP: "pp*" diff --git a/.github/workflows/svn-build-artifacts.yml b/.github/workflows/svn-build-artifacts.yml index 6a81cd7d3c..56d8f1af6b 100644 --- a/.github/workflows/svn-build-artifacts.yml +++ b/.github/workflows/svn-build-artifacts.yml @@ -65,8 +65,8 @@ jobs: # Ignore 32 bit architectures CIBW_ARCHS: "auto64" CIBW_PROJECT_REQUIRES_PYTHON: ">=3.10,<3.14" - CIBW_TEST_REQUIRES: "pytest==7.4.2 moto==5.0.1 pytest-lazy-fixture==0.6.3 sqlalchemy>=2.0.18,<3" - CIBW_TEST_COMMAND: "pytest {project}/tests/avro/test_decoder.py" + CIBW_BEFORE_TEST: "uv sync --directory {project} --only-group dev --no-install-project" + CIBW_TEST_COMMAND: "uv run --directory {project} pytest tests/avro/test_decoder.py" # Ignore tests for pypy since not all dependencies are compiled for it # and would require a local rust build chain CIBW_TEST_SKIP: "pp*" diff --git a/pyproject.toml b/pyproject.toml index 9d602df554..14cd882b34 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -118,6 +118,7 @@ dev = [ "mypy-boto3-glue>=1.28.18", "mypy-boto3-dynamodb>=1.28.18", "pyarrow-stubs>=20.0.0.20251107", # Remove when pyarrow >= 23.0.0 https://github.com/apache/arrow/pull/47609 + "sqlalchemy>=2.0.18,<3", ] # for mkdocs docs = [ diff --git a/uv.lock b/uv.lock index 4b36e971aa..1d6605595b 100644 --- a/uv.lock +++ b/uv.lock @@ -3796,6 +3796,7 @@ dev = [ { name = "pytest-lazy-fixture" }, { name = "pytest-mock" }, { name = "requests-mock" }, + { name = "sqlalchemy" }, { name = "typing-extensions" }, ] docs = [ @@ -3880,6 +3881,7 @@ dev = [ { name = "pytest-lazy-fixture", specifier = "==0.6.3" }, { name = "pytest-mock", specifier = "==3.15.1" }, { name = "requests-mock", specifier = "==1.12.1" }, + { name = "sqlalchemy", specifier = ">=2.0.18,<3" }, { name = "typing-extensions", specifier = "==4.15.0" }, ] docs = [