mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 11:51:05 -05:00
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:
9
.github/workflows/test.yml
vendored
9
.github/workflows/test.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user