Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Fix Pypy job #528

Merged
merged 3 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/test_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
{"pkg_name": "python==3.10.*", "flag": "3.10"},
{"pkg_name": "python==3.11.*", "flag": "3.11"},
{"pkg_name": "python==3.12.*", "flag": "3.12"},
{"pkg_name": "pypy3.8", "flag": "pypy3.8"},
{"pkg_name": "pypy3.10", "flag": "pypy3.10"},
]

# The type of runner that the job will run on
Expand Down Expand Up @@ -153,9 +153,12 @@ 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: |
export PYTEST_ADDOPTS='--require-all-dialects'
if [[ ${{ matrix.python-version.flag }} == 'pypy3.8' ]]; then
if [[ ${{ matrix.python-version.flag }} == 'pypy3.10' ]]; then
export PYTEST_ADDOPTS=${PYTEST_ADDOPTS}' --ignore=tests/gallery/test_insert_raster.py'
export PYTEST_SPATIALITE3_DB_URL="FAILING URL"
export PYTEST_SPATIALITE4_DB_URL="FAILING URL"
else
export PYTEST_ADDOPTS='--require-all-dialects'
fi;
# Run the unit test suite with SQLAlchemy=1.4.* and then with the latest version of SQLAlchemy
tox -vv
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ python =
3.10: py310-sqla{14, latest}
3.11: py311-sqla{14, latest}, docs
3.12: py312-sqla{14, latest}
pypy-3.8: pypy3-sqla{14, latest}
pypy-3.10: pypy3-sqla{14, latest}

[testenv]
passenv=
Expand Down