Skip to content

Commit 101f6bb

Browse files
committed
test: use platform-specific lock files with ci and coverage jobs
Change the python-package.yml workflow to use the platform specific lock files.
1 parent a897253 commit 101f6bb

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/python-package.yml

+17-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,16 @@ jobs:
2727
with:
2828
python-version: ${{ matrix.python-version }}
2929
- name: Install dependencies
30+
if: matrix.os == 'ubuntu-latest'
3031
run: |
31-
pdm install -dG test
32-
- name: Run Tests
32+
pdm install -dG test -L pdm_linux.lock
33+
if: matrix.os == 'windows-latest'
34+
run: |
35+
pdm install -dG test -L pdm_windows.lock
36+
if: matrix.os == 'macOS-latest'
37+
run: |
38+
pdm install -dG test -L pdm_macos.lock
39+
- name: Run Tests
3340
run: |
3441
pdm run pytest
3542
coverage:
@@ -49,8 +56,15 @@ jobs:
4956
with:
5057
python-version: ${{ matrix.python-version }}
5158
- name: Install dependencies
59+
if: matrix.os == 'ubuntu-latest'
60+
run: |
61+
pdm install -dG test -L pdm_linux.lock
62+
if: matrix.os == 'windows-latest'
63+
run: |
64+
pdm install -dG test -L pdm_windows.lock
65+
if: matrix.os == 'macOS-latest'
5266
run: |
53-
pdm install -dG test
67+
pdm install -dG test -L pdm_macos.lock
5468
# See: https://remarkablemark.org/blog/2023/10/14/setup-codeclimate-with-github-actions/
5569
- uses: remarkablemark/setup-codeclimate@v2
5670
- name: Run Tests and report to CodeClimate

0 commit comments

Comments
 (0)