Add GitHub Actions workflows for CI and automated PyPI publishing#14
Open
jcpitre wants to merge 5 commits into
Open
Add GitHub Actions workflows for CI and automated PyPI publishing#14jcpitre wants to merge 5 commits into
jcpitre wants to merge 5 commits into
Conversation
6 tasks
cka-y
reviewed
Jun 4, 2026
| @@ -0,0 +1,29 @@ | |||
| name: Python Tests | |||
Contributor
There was a problem hiding this comment.
I believe this is already covered by ci.yml
Contributor
Author
There was a problem hiding this comment.
Do we want tests to run before release? Or do we trust that ci.yml ran properly?
python-test.yml is essentially called from python-release.yml.
It could have been embedded in python-release.yml.
- ci.yml is a smart gate — runs conditionally on path changes, designed for PR feedback speed
- python-test.yml is a release safety net — runs unconditionally, designed for correctness at publish time
I suggest we keep both.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3
What this adds
python-test.yml— runs the test suite on Python 3.10–3.13 on every release or manually.python-release.yml— triggered when a GitHub Release is published. Runs the full test matrix first, then builds and publishes the package to PyPI using Trusted Publisher (OIDC) — no API token required.How to cut a release
See the new Releasing a New Version section in
README.md.These workflows can only be fully tested after this PR is merged, because:
workflow_dispatch.MobilityData/gtfs-diff-engine, workflowpython-release.yml, environmentpypi.Recommended follow-up (requires admin): Enable branch protection on
mainto requireci.ymlstatus checks to pass before merging. This prevents a release from being cut from a brokenmain. Go to Settings → Branches → Add branch ruleset, and require thetest,lint, andmodels-freshnessjobs as required status checks.