CI: Work around outdated pypy-3.8-v7.3.8 sqlite

pypy-3.8-v7.3.8 accidentally shipped with sqlite v3.7.17,
which is a decade old, and causes the tests to fail with
`django.core.exceptions.ImproperlyConfigured:
SQLite 3.9.0 or later is required`.

Until pypy-3.8-v7.3.9 is available in actions/setup-python,
work around the problem by forcing unqualified "pypy-3.8"
to specific (older) version "pypy-3.8-v7.3.7".

See https://foss.heptapod.net/pypy/pypy/-/issues/3690
and https://github.com/actions/setup-python/issues/339.
This commit is contained in:
medmunds
2022-03-17 11:25:48 -07:00
committed by Mike Edmunds
parent ddeb938a3c
commit c7288b9b72

View File

@@ -26,9 +26,14 @@ jobs:
python -m tox --version
- name: Generate tox envlist
id: generate-envlist
# Ugh. pypy-3.8-v7.3.8 accidentally includes an ancient sqlite unusable by Django,
# so change "pypy-3.8" to specific (older) version "pypy-3.8-v7.3.7".
# (Remove these `sed` commands after pypy-3.8-v7.3.9 is released.)
# https://foss.heptapod.net/pypy/pypy/-/issues/3690
# https://github.com/actions/setup-python/issues/339
run: |
python -m tox --gh-matrix
python -m tox --gh-matrix-dump # for debugging
python -m tox --gh-matrix | sed -e 's/"pypy-3\.8"/"pypy-3.8-v7.3.7"/g'
python -m tox --gh-matrix-dump | sed -e 's/"pypy-3\.8"/"pypy-3.8-v7.3.7"/g' # for debugging
test:
runs-on: ubuntu-20.04