Skip to content

Commit 85391d9

Browse files
Filter out python 3.10 google.api_core future warnings
1 parent b8bad56 commit 85391d9

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

tests.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,15 @@ for package in $packages; do
1313
if [ -d _tilebox ]; then
1414
module=_tilebox
1515
fi
16-
uv run --all-packages pytest -Wall -Werror --cov=$module --cov-branch -v --junitxml=test-report.xml . || exit 1
16+
17+
PYTHON_VERSION=$(uv run python -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")' 2>/dev/null || true)
18+
19+
if [ "$PYTHON_VERSION" = "3.10" ]; then
20+
# ignore: FutureWarning: You are using a Python version (3.10.11) which Google will stop supporting in new releases of google.api_core once it reaches its end of life (2026-10-04).
21+
uv run --all-packages pytest -Wall -Werror -W "ignore::FutureWarning" --cov=$module --cov-branch -v --junitxml=test-report.xml . || exit 1
22+
else
23+
uv run --all-packages pytest -Wall -Werror --cov=$module --cov-branch -v --junitxml=test-report.xml . || exit 1
24+
fi
1725

1826
cd .. || exit 1 # cd back to the root of the monorepo
1927
done

0 commit comments

Comments
 (0)