Skip to content

ci: skip PyPI upload when dist is empty#192

Merged
pyoor merged 1 commit into
masterfrom
ci/fix-empty-dist
Jun 10, 2026
Merged

ci: skip PyPI upload when dist is empty#192
pyoor merged 1 commit into
masterfrom
ci/fix-empty-dist

Conversation

@pyoor

@pyoor pyoor commented Jun 10, 2026

Copy link
Copy Markdown
Member

The OIDC migration dropped the guard that was in the old twine upload step (if [[ ${#files[@]} -gt 0 ]]). When PSR finds no releasable commits, dist/ is empty and the publish action errors. Add an equivalent guard via hashFiles.

@pyoor pyoor requested a review from a team as a code owner June 10, 2026 21:39
@pyoor pyoor enabled auto-merge (rebase) June 10, 2026 21:39
@pyoor pyoor merged commit fb06bd3 into master Jun 10, 2026
8 checks passed
@pyoor pyoor deleted the ci/fix-empty-dist branch June 10, 2026 21:40
@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (b7d4271) to head (0bdd172).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #192   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines          232       232           
=========================================
  Hits           232       232           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants