Skip to content

Commit c581698

Browse files
CI: Disable SQLite for Pypy job (#528)
For unknown reasons the SQLite driver sometimes causes Segmentation Faults in CI with Pypy so we disable it for the Pypy job.
1 parent b51dc36 commit c581698

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/test_and_publish.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
{"pkg_name": "python==3.10.*", "flag": "3.10"},
3434
{"pkg_name": "python==3.11.*", "flag": "3.11"},
3535
{"pkg_name": "python==3.12.*", "flag": "3.12"},
36-
{"pkg_name": "pypy3.8", "flag": "pypy3.8"},
36+
{"pkg_name": "pypy3.10", "flag": "pypy3.10"},
3737
]
3838

3939
# The type of runner that the job will run on
@@ -153,9 +153,12 @@ jobs:
153153
PYTEST_MYSQL_DB_URL: mysql://gis:gis@127.0.0.1:3307/gis
154154
PYTEST_MARIADB_DB_URL: mariadb://gis:gis@127.0.0.1:3308/gis
155155
run: |
156-
export PYTEST_ADDOPTS='--require-all-dialects'
157-
if [[ ${{ matrix.python-version.flag }} == 'pypy3.8' ]]; then
156+
if [[ ${{ matrix.python-version.flag }} == 'pypy3.10' ]]; then
158157
export PYTEST_ADDOPTS=${PYTEST_ADDOPTS}' --ignore=tests/gallery/test_insert_raster.py'
158+
export PYTEST_SPATIALITE3_DB_URL="FAILING URL"
159+
export PYTEST_SPATIALITE4_DB_URL="FAILING URL"
160+
else
161+
export PYTEST_ADDOPTS='--require-all-dialects'
159162
fi;
160163
# Run the unit test suite with SQLAlchemy=1.4.* and then with the latest version of SQLAlchemy
161164
tox -vv

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ python =
1111
3.10: py310-sqla{14, latest}
1212
3.11: py311-sqla{14, latest}, docs
1313
3.12: py312-sqla{14, latest}
14-
pypy-3.8: pypy3-sqla{14, latest}
14+
pypy-3.10: pypy3-sqla{14, latest}
1515

1616
[testenv]
1717
passenv=

0 commit comments

Comments
 (0)