@@ -154,9 +154,17 @@ jobs:
154
154
- name : Setup Just
155
155
uses : extractions/setup-just@v3
156
156
- name : Install Release Dependencies
157
+ shell : bash
157
158
run : |
158
159
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
160
168
- name : Install Emacs
161
169
if : ${{ github.event.inputs.debug == 'true' }}
162
170
run : |
@@ -334,14 +342,7 @@ jobs:
334
342
shell : bash
335
343
run : |
336
344
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
345
346
346
347
- name : Install mysqlclient if needed
347
348
if : ${{ matrix.mysqlclient-version != '' }}
0 commit comments