From c7288b9b725db0ff1ad3cb1312bedc523b0cdea7 Mon Sep 17 00:00:00 2001 From: medmunds Date: Thu, 17 Mar 2022 11:25:48 -0700 Subject: [PATCH] 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. --- .github/workflows/test.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7a788e9..4483005 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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