Skip to content

Commit

Permalink
Fix macos and windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Routhleck committed Sep 8, 2024
1 parent 1c12334 commit 2e3dfae
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/Publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,12 @@ jobs:
python -m pip install --upgrade pip setuptools --no-cache-dir
python -m pip install -r requirements-dev.txt --no-cache-dir
python -m pip install setuptools==68.2.0
pip install cibuildwheel
- name: Build Wheel
run: python setup.py bdist_wheel
run: |
sh copy_pyproject_mac_arm64.sh
cibuildwheel --platform macos
cp wheelhouse/*.whl dist/
- name: Archive Wheel Artifacts
uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -108,7 +112,9 @@ jobs:
retention-days: 20
- name: Test with pytest
run: |
pip install dist/*.whl
$whl = Get-ChildItem -Path dist -Filter *.whl | Select-Object -First 1
if ($whl) { pip install $whl.FullName }
else { Write-Error "No wheel file found in dist directory" }
pytest tests/
publish_pypi:
Expand Down

0 comments on commit 2e3dfae

Please sign in to comment.