Skip to content

Commit 0dab29e

Browse files
committed
try fix dj prerelease lock
1 parent 384eb07 commit 0dab29e

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,17 @@ jobs:
154154
- name: Setup Just
155155
uses: extractions/setup-just@v3
156156
- name: Install Release Dependencies
157+
shell: bash
157158
run: |
158159
just setup ${{ steps.sp.outputs.python-path }}
159-
just test-lock "Django~=${{ matrix.django-version }}.0"
160+
DJANGO_VERSION="${{ matrix.django-version }}"
161+
if [[ "$DJANGO_VERSION" =~ (a|b|rc) ]]; then
162+
# prerelease, use exact version pin
163+
just test-lock Django==${{ matrix.django-version }}
164+
else
165+
# stable release, use compatible release specifier
166+
just test-lock Django~=${{ matrix.django-version }}.0
167+
fi
160168
- name: Install Emacs
161169
if: ${{ github.event.inputs.debug == 'true' }}
162170
run: |
@@ -334,14 +342,7 @@ jobs:
334342
shell: bash
335343
run: |
336344
just setup ${{ steps.sp.outputs.python-path }}
337-
DJANGO_VERSION="${{ matrix.django-version }}"
338-
if [[ "$DJANGO_VERSION" =~ (a|b|rc) ]]; then
339-
# prerelease, use exact version pin
340-
just test-lock Django==${{ matrix.django-version }}
341-
else
342-
# stable release, use compatible release specifier
343-
just test-lock Django~=${{ matrix.django-version }}.0
344-
fi
345+
just test-lock Django~=${{ matrix.django-version }}.0
345346
346347
- name: Install mysqlclient if needed
347348
if: ${{ matrix.mysqlclient-version != '' }}

0 commit comments

Comments
 (0)