Skip to content

Commit 099cde0

Browse files
committed
test lock to exact django version if it is a prerelease
1 parent 56b33de commit 099cde0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,13 @@ jobs:
333333
- name: Install Release Dependencies
334334
run: |
335335
just setup ${{ steps.sp.outputs.python-path }}
336-
just test-lock Django~=${{ matrix.django-version }}.0
336+
if [[ "${{ matrix.django-version }}" =~ (a|b|rc) ]]; then
337+
# prerelease, use exact version pin
338+
just test-lock Django==${{ matrix.django-version }}.0
339+
else
340+
# stable release, use compatible release specifier
341+
just test-lock Django~=${{ matrix.django-version }}.0
342+
fi
337343
338344
- name: Install mysqlclient if needed
339345
if: ${{ matrix.mysqlclient-version != '' }}

0 commit comments

Comments
 (0)