Skip to content

Commit 95e90e6

Browse files
committed
Fix testing of wheels on Windows
1 parent f30eca7 commit 95e90e6

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

.github/workflows/wheels.yml

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ jobs:
3939
with:
4040
path: dist
4141

42-
test:
42+
unix-test:
4343
# This workflow only runs on the origin org
4444
if: github.repository_owner == 'sgkit-dev'
4545
needs: ['build']
4646
strategy:
4747
matrix:
4848
# don't use macos-latest as it uses M1 which doesn't work
49-
os: [ubuntu-latest, macos-12, windows-latest]
49+
os: [ubuntu-latest, macos-12]
5050
python-version: ["3.9", "3.10", "3.11"]
5151
runs-on: ${{ matrix.os }}
5252
steps:
@@ -70,6 +70,35 @@ jobs:
7070
python sgkit-copy/.github/scripts/test_sgkit_bgen.py
7171
python sgkit-copy/.github/scripts/test_sgkit_plink.py
7272
73+
windows-test:
74+
# This workflow only runs on the origin org
75+
if: github.repository_owner == 'sgkit-dev'
76+
runs-on: windows-latest
77+
needs: ['build']
78+
strategy:
79+
matrix:
80+
python-version: ["3.9"]
81+
steps:
82+
# checkout repo to subdirectory to get access to scripts
83+
- uses: actions/checkout@v2
84+
with:
85+
path: sgkit-copy
86+
- name: Download artifacts
87+
uses: actions/[email protected]
88+
- name: Set up Python ${{ matrix.python-version }}
89+
uses: actions/setup-python@v2
90+
with:
91+
python-version: ${{ matrix.python-version }}
92+
- name: Install wheel and test
93+
run: |
94+
python -VV
95+
# Install the local wheel
96+
$env:wheel = $(ls artifact/sgkit-*.whl)
97+
pip install $env:wheel "$env:wheel[bgen]" "$env:wheel[plink]"
98+
python sgkit-copy/.github/scripts/test_sgkit.py
99+
python sgkit-copy/.github/scripts/test_sgkit_bgen.py
100+
python sgkit-copy/.github/scripts/test_sgkit_plink.py
101+
73102
74103
pypi-upload:
75104
if: github.repository_owner == 'sgkit-dev'

0 commit comments

Comments
 (0)