Skip to content

Commit ea1ad69

Browse files
ci: test windows
1 parent 6cfec31 commit ea1ad69

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/python-package.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,20 @@ jobs:
2323
uses: actions/setup-python@v2
2424
with:
2525
python-version: ${{ matrix.python-version }}
26-
- name: Install dependencies
26+
27+
- name: Install dependencies (Linux/macOS)
28+
if: runner.os != 'Windows'
2729
run: |
2830
python -m pip install --upgrade pip
2931
if [ -f requirements.txt ]; then pip install -r requirements.txt -r requirements_dev.txt; fi
32+
33+
- name: Install dependencies (Windows)
34+
if: runner.os == 'Windows'
35+
run: |
36+
python -m pip install --upgrade pip
37+
if (Test-Path requirements.txt) { pip install -r requirements.txt -r requirements_dev.txt }
38+
shell: pwsh
39+
3040
- name: Test with pytest
3141
run: |
3242
python -m pytest -v -x test

0 commit comments

Comments
 (0)