Skip to content

Commit 173f61a

Browse files
committed
fix CI for prereleases
1 parent b15c416 commit 173f61a

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,11 @@ jobs:
155155
- name: Install Release Dependencies
156156
run: |
157157
just setup ${{ steps.sp.outputs.python-path }}
158-
just test-lock Django~=${{ matrix.django-version }}.0
158+
if [[ "${{ matrix.django-version }}" =~ (a|b|rc) ]]; then
159+
just test-lock Django==${{ matrix.django-version }}
160+
else
161+
just test-lock Django~=${{ matrix.django-version }}.0
162+
fi
159163
- name: install-emacs-macos
160164
if: ${{ github.event.inputs.debug == 'true' }}
161165
run: |
@@ -232,7 +236,14 @@ jobs:
232236
- name: Install Release Dependencies
233237
run: |
234238
just setup ${{ steps.sp.outputs.python-path }}
235-
just test-lock Django~=${{ matrix.django-version }}.0
239+
$version = "${{ matrix.django-version }}"
240+
241+
if ($version -match "(a|b|rc)") {
242+
just test-lock "Django==$version"
243+
} else {
244+
just test-lock "Django~=$version.0"
245+
}
246+
shell: pwsh
236247
- name: install-vim-windows
237248
if: ${{ github.event.inputs.debug == 'true' }}
238249
uses: rhysd/action-setup-vim@v1

0 commit comments

Comments
 (0)