Skip to content

Fix CI and modernize release workflow - #9

Merged
cssho merged 1 commit into
masterfrom
fix-ci
Oct 26, 2026
Merged

cssho merged 1 commit into
masterfrom
fix-ci

Conversation

@cssho

@cssho cssho commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • CI: replace the Python 3.7 pin (no longer available on ubuntu-latest, so every run failed) with a 3.10–3.14 matrix; bump to actions/checkout@v5 / setup-python@v6; also run on pull_request; permissions: contents: read; add ci-ok aggregate job as a stable required-check name for the branch ruleset
  • Publish: switch to PyPI Trusted Publishing (pypa/gh-action-pypi-publish, id-token: write, environment pypi), build with python -m build. PyPI no longer accepts username/password uploads.
  • Dependabot: add .github/dependabot.yml (weekly github-actions + pip)
  • test.py: e.message → str(e) so failing comparisons show the diff instead of AttributeError
  • CLAUDE.md updated accordingly

Required manual step before the next release

Register a Trusted Publisher on PyPI for md-condition: owner cssho, repo md-condition, workflow pythonpublish.yml, environment pypi. After that the PYPI_USERNAME/PYPI_PASSWORD secrets can be deleted.

Test plan

  • Local: pytest 6 passed, flake8 gate clean, YAML parses
  • CI matrix green on this PR

🤖 Generated with Claude Code

https://claude.ai/code/session_012pKTVb5TrGn27R29rHHNck

- CI: Python 3.10-3.14 matrix (3.7 is no longer on ubuntu-latest),
  actions/checkout@v5 + setup-python@v6, run on PRs, read-only token,
  and a ci-ok aggregate job as a stable required-check name
- Publish: PyPI Trusted Publishing via pypa/gh-action-pypi-publish,
  build with python -m build (replaces username/password upload)
- Add dependabot.yml for weekly github-actions and pip updates
- test.py: use str(e) instead of Python 2-only e.message

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012pKTVb5TrGn27R29rHHNck
@cssho
cssho merged commit 0513915 into master Oct 26, 2026
6 checks passed
@cssho
cssho deleted the fix-ci branch October 26, 2026 12:12
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.

1 participant