Skip to content

Show distribution file sizes in publish.yml GH Actions workflow #2278

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Oct 31, 2024
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,21 @@ jobs:
- name: Build packages
run: python -m build

- name: List distribution file sizes
run: ls -hl dist/*

- name: Check metadata verification
run: python -m twine check --strict dist/*

- name: Ensure that the wheel installs successfully
run: |
mkdir ./tmp
pip install $(find dist -type f -name "*.whl") --target=./tmp

- name: List installed file sizes
run: |
cd ./tmp && du -h pvlib

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