Skip to content

Commit 7793ac0

Browse files
committed
test: fix incorrect use platform-specific steps ci and coverage jobs
Fix incorrect syntax of steps with if: CASE
1 parent 101f6bb commit 7793ac0

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/python-package.yml

+12-8
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,16 @@ jobs:
2626
uses: pdm-project/setup-pdm@v4
2727
with:
2828
python-version: ${{ matrix.python-version }}
29-
- name: Install dependencies
30-
if: matrix.os == 'ubuntu-latest'
29+
- if: matrix.os == 'ubuntu-latest'
30+
name: Install dependencies on Linux
3131
run: |
3232
pdm install -dG test -L pdm_linux.lock
33-
if: matrix.os == 'windows-latest'
33+
- if: matrix.os == 'windows-latest'
34+
name: Install dependencies on Windows
3435
run: |
3536
pdm install -dG test -L pdm_windows.lock
36-
if: matrix.os == 'macOS-latest'
37+
- if: matrix.os == 'macOS-latest'
38+
name: Install dependencies on macOS
3739
run: |
3840
pdm install -dG test -L pdm_macos.lock
3941
- name: Run Tests
@@ -55,14 +57,16 @@ jobs:
5557
uses: pdm-project/setup-pdm@v4
5658
with:
5759
python-version: ${{ matrix.python-version }}
58-
- name: Install dependencies
59-
if: matrix.os == 'ubuntu-latest'
60+
- if: matrix.os == 'ubuntu-latest'
61+
name: Install dependencies on Linux
6062
run: |
6163
pdm install -dG test -L pdm_linux.lock
62-
if: matrix.os == 'windows-latest'
64+
- if: matrix.os == 'windows-latest'
65+
name: Install dependencies on Windows
6366
run: |
6467
pdm install -dG test -L pdm_windows.lock
65-
if: matrix.os == 'macOS-latest'
68+
- if: matrix.os == 'macOS-latest'
69+
name: Install dependencies on macOS
6670
run: |
6771
pdm install -dG test -L pdm_macos.lock
6872
# See: https://remarkablemark.org/blog/2023/10/14/setup-codeclimate-with-github-actions/

0 commit comments

Comments
 (0)