Skip to content

Commit

Permalink
tweak how installed file sizes are checked
Browse files Browse the repository at this point in the history
  • Loading branch information
kandersolar committed Oct 22, 2024
1 parent 19f350f commit 526ce84
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,14 @@ jobs:
- name: Check metadata verification
run: python -m twine check --strict dist/*

- name: Ensure that the wheel installs correctly, and show installed size
- name: Ensure that the wheel installs successfully
run: |
pip install $(find dist -type f -name "*.whl")
du -h $(python -c "import pvlib; print(pvlib.__path__[0])")
mkdir ./tmp
pip install $(find dist -type f -name "*.whl") --target=./tmp
- name: List installed file sizes
du -h ./tmp

# only publish distribution to PyPI for tagged commits
- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags/v')
Expand Down

0 comments on commit 526ce84

Please sign in to comment.