From 534043487a68db2a67ecdfda7b30e19a860e1713 Mon Sep 17 00:00:00 2001 From: Adrien Berchet Date: Sun, 3 Nov 2024 00:21:46 +0100 Subject: [PATCH] Fix CI for Pypy --- .github/workflows/test_and_publish.yml | 3 +++ requirements.txt | 2 +- tox.ini | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_and_publish.yml b/.github/workflows/test_and_publish.yml index b9cf9d8f..c2b40ec4 100644 --- a/.github/workflows/test_and_publish.yml +++ b/.github/workflows/test_and_publish.yml @@ -153,6 +153,9 @@ jobs: PYTEST_MYSQL_DB_URL: mysql://gis:gis@127.0.0.1:3307/gis PYTEST_MARIADB_DB_URL: mariadb://gis:gis@127.0.0.1:3308/gis run: | + if [[ ${{ matrix.python-version.flag }} == 'pypy3.8' ]]; then + export PYTEST_ADDOPTS='--ignore=tests/gallery/test_insert_raster.py' + fi; # Run the unit test suite with SQLAlchemy=1.4.* and then with the latest version of SQLAlchemy tox -vv diff --git a/requirements.txt b/requirements.txt index 3895f610..ade78067 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,4 +6,4 @@ pytest pytest-cov pytest-html pytest-mypy -rasterio +rasterio;implementation_name!='pypy' diff --git a/tox.ini b/tox.ini index b049b7a5..bcf8c82e 100644 --- a/tox.ini +++ b/tox.ini @@ -16,6 +16,7 @@ python = [testenv] passenv= PROJ_LIB + PYTEST_ADDOPTS PYTEST_POSTGRESQL_DB_URL PYTEST_MARIADB_DB_URL PYTEST_MYSQL_DB_URL