Install tip version of pycryptomdex in test environment as well
authorMagnus Hagander <magnus@hagander.net>
Fri, 22 Dec 2023 12:47:26 +0000 (13:47 +0100)
committerMagnus Hagander <magnus@hagander.net>
Fri, 22 Dec 2023 12:47:26 +0000 (13:47 +0100)
The github actions environment is apparently weird because the same
version that runs in the local docker test env doesn't run there. But
again since we don't actually call into  it, version shouldn't matter as
long as all we do is check migrations.

.github/workflows/validate-syntax.yaml

index ed1ab8752c45619753369fde872a4c90640ee28d..b9016ebcc140ebd8ea25027d2a09f29364954740 100644 (file)
@@ -26,6 +26,6 @@ jobs:
     - name: Make sure there are no missing migrations
       run: |
         echo "SECRET_KEY='foobar'" > postgresqleu/local_settings.py
-        pip install Pillow  # Install the "wrong" version of pillow so it uses a wheel - since we won't actually call it anyway
-        pip install -r <(grep -v Pillow tools/devsetup/dev_requirements.txt)
+        pip install Pillow pycryptodomex # Install the "wrong" version of pillow and pycryptodomex so it uses a wheel - since we won't actually call it anyway
+        pip install -r <(grep -Ev Pillow|pycryptodomex tools/devsetup/dev_requirements.txt)
         python manage.py makemigrations --check --dry-run