@@ -38,14 +38,14 @@ jobs:
3838 with :
3939 path : dist
4040
41- test :
41+ unix- test :
4242 # This workflow only runs on the origin org
4343 if : github.repository_owner == 'sgkit-dev'
4444 needs : ['build']
4545 strategy :
4646 matrix :
4747 # don't use macos-latest as it uses M1 which doesn't work
48- os : [ubuntu-latest, macos-12, windows-latest ]
48+ os : [ubuntu-latest, macos-12]
4949 python-version : ["3.9", "3.10", "3.11"]
5050 runs-on : ${{ matrix.os }}
5151 steps :
@@ -69,11 +69,40 @@ jobs:
6969 python sgkit-copy/.github/scripts/test_sgkit_bgen.py
7070 python sgkit-copy/.github/scripts/test_sgkit_plink.py
7171
72+ windows-test :
73+ # This workflow only runs on the origin org
74+ if : github.repository_owner == 'sgkit-dev'
75+ runs-on : windows-latest
76+ needs : ['build']
77+ strategy :
78+ matrix :
79+ python-version : ["3.9"]
80+ steps :
81+ # checkout repo to subdirectory to get access to scripts
82+ - uses : actions/checkout@v2
83+ with :
84+ path : sgkit-copy
85+ - name : Download artifacts
86+ uses : actions/download-artifact@v4.1.7
87+ - name : Set up Python ${{ matrix.python-version }}
88+ uses : actions/setup-python@v2
89+ with :
90+ python-version : ${{ matrix.python-version }}
91+ - name : Install wheel and test
92+ run : |
93+ python -VV
94+ # Install the local wheel
95+ $env:wheel = $(ls artifact/sgkit-*.whl)
96+ pip install $env:wheel "$env:wheel[bgen]" "$env:wheel[plink]"
97+ python sgkit-copy/.github/scripts/test_sgkit.py
98+ python sgkit-copy/.github/scripts/test_sgkit_bgen.py
99+ python sgkit-copy/.github/scripts/test_sgkit_plink.py
100+
72101
73102 pypi-upload :
74103 if : github.repository_owner == 'sgkit-dev'
75104 runs-on : ubuntu-latest
76- needs : ['test']
105+ needs : ['unix-test', 'windows- test']
77106 steps :
78107 - name : Download all
79108 uses : actions/download-artifact@v4.1.7
0 commit comments