Skip to content

Migrate CI from Travis to GitHub Actions#5

Open
tgamblin wants to merge 1 commit into
mainfrom
gha-ci
Open

Migrate CI from Travis to GitHub Actions#5
tgamblin wants to merge 1 commit into
mainfrom
gha-ci

Conversation

@tgamblin
Copy link
Copy Markdown
Member

@tgamblin tgamblin commented May 18, 2026

Summary

  • Replace .travis.yml with .github/workflows/tests.yml: style job (black + flake8 + pep8-naming) and a Python 3.10–3.14 test matrix, coverage uploaded via codecov-action.
  • Pin all third-party actions by full commit SHA with a # vN.M.P comment noting the tag at pin time:
    • actions/checkout v6.0.2
    • actions/setup-python v6.2.0
    • codecov/codecov-action v6.0.1
  • Add fetch-depth: 0 to the test job's checkout — existing tests run git blame against historical SHAs and need full history.
  • Drop unused import glob from contrib/main.py so flake8 passes.
  • Update README badges to the new workflow and the main branch.

Test plan

  • style (black + flake8 + pep8-naming) green
  • All five Python versions (3.10–3.14) green
  • Codecov upload succeeds (requires CODECOV_TOKEN repo secret; v6 will still attempt tokenless upload for public repos, but with rate limits)

@tgamblin tgamblin force-pushed the gha-ci branch 3 times, most recently from e42d13a to 8c531eb Compare May 18, 2026 20:47
Replace the Travis config with a tests workflow on GitHub Actions:
style job (black + flake8 + pep8-naming) and a Python 3.10-3.14 test
matrix, with coverage uploaded via codecov-action. README badges
updated to point at the new workflow and the main branch.

Third-party actions are pinned by full commit SHA (with a `# vN.M.P`
comment noting the tag at pin time) for supply-chain hardening:
  - actions/checkout       v6.0.2
  - actions/setup-python   v6.2.0
  - codecov/codecov-action v6.0.1

The checkout step uses fetch-depth: 0 so the tests can run git blame
against historical SHAs in the repo's own history.

Also drops an unused `import glob` in contrib/main.py so flake8 passes.

Assisted-by: Claude Opus 4.7 <noreply@anthropic.com>
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