Skip to content

Commit 461f7ff

Browse files
committed
try fix GHA windows dependency locking
1 parent 71d0b69 commit 461f7ff

File tree

1 file changed

+21
-15
lines changed

1 file changed

+21
-15
lines changed

.github/workflows/test.yml

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,13 @@ jobs:
170170
- name: Install Dependencies
171171
run: |
172172
just setup ${{ steps.sp.outputs.python-path }}
173-
if [[ "${{ matrix.django-version }}" =~ (a|b|rc) ]]; then
174-
just test-lock Django==${{ matrix.django-version }}
175-
else
176-
just test-lock Django~=${{ matrix.django-version }}.0
177-
fi
173+
$version = "${{ matrix.django-version }}"
174+
175+
if ($version -match "(a|b|rc)") {
176+
just test-lock "Django==$version"
177+
} else {
178+
just test-lock "Django~=$version.0"
179+
}
178180
- name: Run Unit Tests
179181
run: |
180182
just test ./tests/verify_environment.py
@@ -840,11 +842,13 @@ jobs:
840842
run: |
841843
just setup ${{ steps.sp.outputs.python-path }}
842844
just install
843-
if [[ "${{ matrix.django-version }}" =~ (a|b|rc) ]]; then
844-
just test-lock Django==${{ matrix.django-version }}
845-
else
846-
just test-lock Django~=${{ matrix.django-version }}.0
847-
fi
845+
$version = "${{ matrix.django-version }}"
846+
847+
if ($version -match "(a|b|rc)") {
848+
just test-lock "Django==$version"
849+
} else {
850+
just test-lock "Django~=$version.0"
851+
}
848852
shell: powershell
849853
- name: Run Powershell Tab Completion Tests
850854
run: |
@@ -933,11 +937,13 @@ jobs:
933937
run: |
934938
just setup ${{ steps.sp.outputs.python-path }}
935939
just install
936-
if [[ "${{ matrix.django-version }}" =~ (a|b|rc) ]]; then
937-
just test-lock Django==${{ matrix.django-version }}
938-
else
939-
just test-lock Django~=${{ matrix.django-version }}.0
940-
fi
940+
$version = "${{ matrix.django-version }}"
941+
942+
if ($version -match "(a|b|rc)") {
943+
just test-lock "Django==$version"
944+
} else {
945+
just test-lock "Django~=$version.0"
946+
}
941947
shell: pwsh
942948
- name: Run Powershell Tab Completion Tests
943949
run: |

0 commit comments

Comments
 (0)