Skip to content

Conversation

@grizz
Copy link
Member

@grizz grizz commented Jul 6, 2025

No description provided.

grizz added 3 commits July 6, 2025 13:40
- Add GitHub Actions workflow for automated PyPI releases on git tags
- Support TestPyPI releases for branches starting with test-release-
- Uses trusted publishing (OIDC) for secure authentication
- Include comprehensive testing and linting before release
- Separate jobs for TestPyPI and PyPI publishing
- Use GitHub environments for better security control
- TestPyPI: publishes on test-release-* branches
- PyPI: publishes only on version tags (v*)
- Follow packaging.python.org recommendations
- Use trusted publishing with OIDC tokens
@codecov
Copy link

codecov bot commented Jul 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.34%. Comparing base (823faf9) to head (b8ad282).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #34   +/-   ##
=======================================
  Coverage   84.34%   84.34%           
=======================================
  Files          14       14           
  Lines         492      492           
=======================================
  Hits          415      415           
  Misses         77       77           

☔ View full report in Codecov by Sentry.
📢 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.

grizz added 3 commits July 6, 2025 20:34
…rsion

- Remove testpypi environment requirement (not configured yet)
- Add verbose logging and file listing for debugging
- Update version to 1.3.1.dev1 to avoid conflicts
- Add print-hash for better visibility
- Add continue-on-error to TestPyPI step
- Provide clear instructions for trusted publishing setup
- Workflow will complete successfully even if TestPyPI fails
- Gives guidance on configuring trusted publisher
- Re-add testpypi environment (may be required by trusted publisher config)
- Add detailed environment and file debugging
- Remove continue-on-error to see actual failure
- Debug GitHub context variables and distribution files
- Use python-package-distributions artifact name (matches working example)
- Simplify permissions to only id-token: write
- Match naming conventions from working 20c/rdap workflow
- Remove verbose flags that might cause issues
- Aligned with working 20c/rdap workflow structure
- TestPyPI issues may be on their side (trusted publishing configured)
- Workflow structure is solid and ready for main branch
- Production PyPI release can be tested with version tags
grizz added 3 commits July 10, 2025 00:19
…atch

Per PyPI troubleshooting docs, environment name must match exactly.
Testing without environment in case TestPyPI config has blank environment name.
TestPyPI config now matches:
- Workflow: release.yaml
- Environment: testpypi
- Fix trailing whitespace issues
- Uncomment testpypi environment to match corrected TestPyPI config
@grizz grizz merged commit e2e9540 into main Jul 10, 2025
25 checks passed
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