Skip to content

Commit

Permalink
Correct workflow for installing and testing sdist on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
anugrahjo committed Oct 13, 2024
1 parent 04b84b4 commit 24469f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build_wheels_test_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ jobs:
- name: Install the sdist
run: |
python -m pip install --upgrade pip
python -m pip install ./dist/*.tar.gz
# python -m pip install ./dist/*.tar.gz # This wildcard exapansion does not work on Windows
# Use Python’s glob module to explicitly handle the wildcard in a platform-independent way:
python -m pip install $(python -c "import glob; print(glob.glob('./dist/*.tar.gz')[0])")
python -m pip install pytest
- name: Run tests
Expand Down

0 comments on commit 24469f7

Please sign in to comment.