Skip to content

Commit 22417b8

Browse files
committed
test: add tests for other wheels
1 parent 6379942 commit 22417b8

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/wheel.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,15 @@ jobs:
8282
# I think musl always uses apk, but keep all options available.
8383
CIBW_BEFORE_ALL: yum install -y bzip2-devel || apt-get install libbz2-dev || apk add --upgrade bzip2-dev
8484

85+
- name: test wheel for python ${{ env.PYVER }}
86+
run: |
87+
pystr='${{ env.PYVER }}'
88+
pystr=${pystr//./}
89+
python -m pip install pip
90+
pip install numpy pytest
91+
pip install ./wheelhouse/*cp${pystr}*.whl
92+
pytest --pyargs fitsio
93+
8594
- uses: actions/upload-artifact@v4
8695
with:
8796
name: whl-musl
@@ -107,6 +116,15 @@ jobs:
107116
CIBW_ENVIRONMENT: >-
108117
MACOSX_DEPLOYMENT_TARGET=13.0
109118
119+
- name: test wheel for python ${{ env.PYVER }}
120+
run: |
121+
pystr='${{ env.PYVER }}'
122+
pystr=${pystr//./}
123+
python -m pip install pip
124+
pip install numpy pytest
125+
pip install ./wheelhouse/*cp${pystr}*.whl
126+
pytest --pyargs fitsio
127+
110128
- uses: actions/upload-artifact@v4
111129
with:
112130
name: whl-macos
@@ -132,6 +150,15 @@ jobs:
132150
CIBW_ENVIRONMENT: >-
133151
MACOSX_DEPLOYMENT_TARGET=14.7
134152
153+
- name: test wheel for python ${{ env.PYVER }}
154+
run: |
155+
pystr='${{ env.PYVER }}'
156+
pystr=${pystr//./}
157+
python -m pip install pip
158+
pip install numpy pytest
159+
pip install ./wheelhouse/*cp${pystr}*.whl
160+
pytest --pyargs fitsio
161+
135162
- uses: actions/upload-artifact@v4
136163
with:
137164
name: whl-arm

0 commit comments

Comments
 (0)