Skip to content

Commit

Permalink
fix: test w/e version of python we have for musl
Browse files Browse the repository at this point in the history
  • Loading branch information
beckermr committed Jan 23, 2025
1 parent 42e1f52 commit 34b0952
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,15 @@ jobs:

- uses: jirutka/setup-alpine@v1
with:
packages: "bzip2-dev python3=~${{ env.PYVER }} py3-pip py3-numpy"
packages: "bzip2-dev python3 py3-pip py3-numpy"

- name: test wheel for python ${{ env.PYVER }}
- name: test wheel for python
shell: alpine.sh {0}
run: |
pystr='${{ env.PYVER }}'
pystr=${pystr//./}
pystr=$(python --version | cut -d' ' -f 2 | cut -d'.' -f 1)$(python --version | cut -d' ' -f 2 | cut -d'.' -f 2)
python -m pip install pip
pip install numpy pytest
pip install ./wheelhouse/*cp${pystr}*.whl
pip install ./wheelhouse/*cp${pystr}*musl*.whl
pytest --pyargs fitsio
- uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 34b0952

Please sign in to comment.