From a940ce5db8563aa3911a22d8ae3d761a108ba4ab Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sat, 10 May 2025 04:11:29 +0200 Subject: [PATCH] ci: fix 3rd party test after the pip django package went lowercase --- .github/workflows/3rd-party-tests.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/3rd-party-tests.yml b/.github/workflows/3rd-party-tests.yml index 9f7c14798..e296015a5 100644 --- a/.github/workflows/3rd-party-tests.yml +++ b/.github/workflows/3rd-party-tests.yml @@ -193,21 +193,21 @@ jobs: - name: Download and configure Django run: | pip download --no-deps --no-binary :all: ${{ matrix.pip_django }} - mkdir django_home - case $(file --brief --mime-type Django*) in + mkdir workdir + case $(file --brief --mime-type [Dd]jango*) in application/gzip) - tar -C django_home -xzf Django* + tar -C workdir -xzf [Dd]jango* ;; application/zip) - unzip -d django_home -q Django* + unzip -d workdir -q [Dd]jango* ;; *) - echo "Unexpected format for $(file --mime-type Django*)" >&2 + echo "Unexpected format for $(file --mime-type [Dd]jango*)" >&2 exit 1 ;; esac - mv django_home/$( ls django_home ) django_home/django - cat << HERE > django_home/django/tests/test_postgresql.py + mv workdir/$( ls workdir ) workdir/django + cat << HERE > workdir/django/tests/test_postgresql.py DATABASES = { "default": { "ENGINE": "django.db.backends.postgresql", @@ -238,12 +238,12 @@ jobs: - uses: actions/cache@v4 with: path: ~/.cache/pip - key: ${{ matrix.python-version }}-pip-${{ hashFiles('django_home/django/tests/requirements/py3.txt', 'django_home/django/setup.cfg') }} + key: ${{ matrix.python-version }}-pip-${{ hashFiles('workdir/django/tests/requirements/py3.txt', 'workdir/django/setup.cfg') }} restore-keys: | ${{ matrix.python-version }}-pip- - name: Install Django and dependencies - working-directory: django_home/django + working-directory: workdir/django run: | # pylibmc wheel package not available from Python 3.12. # https://github.com/lericson/pylibmc/issues/288 @@ -255,5 +255,5 @@ jobs: pip install -r tests/requirements/py3.txt - name: Run Django tests - working-directory: django_home/django/tests + working-directory: workdir/django/tests run: ./runtests.py --settings=test_postgresql postgres_tests backends queries -- 2.47.2