Skip to content

ci: migrate from Travis CI to GitHub Actions - #14

Merged
boolangery merged 3 commits into
masterfrom
ci/github-actions
Jul 20, 2026
Merged

ci: migrate from Travis CI to GitHub Actions#14
boolangery merged 3 commits into
masterfrom
ci/github-actions

Conversation

@boolangery

Copy link
Copy Markdown
Owner

Problem

Travis CI is no longer functional for open-source projects. sphinx-lua still used .travis.yml with Python 2.7 and 3.6.

Changes

  • Replace Travis CI with GitHub Actions workflows:
    • python-package.yml: test via sphinx-build on Python 3.9, 3.10, 3.11, 3.12
    • python-publish.yml: publish to PyPI on release
  • Update Python classifiers from 3.5–3.7 to 3.9–3.12
  • Add python_requires='>=3.9'

Modeled after the existing py-lua-parser workflows.

Travis CI is no longer functional for open-source projects.
- Replace .travis.yml with GitHub Actions workflows
- Test via Sphinx build on Python 3.9-3.12
- Publish to PyPI on release
- Update Python classifiers and add python_requires='>=3.9'
The start_stop_line filter calculated line ranges from character offsets
but could produce stop lines exceeding the actual file line count.
Newer Sphinx versions validate lines ranges, causing "line number spec
is out of range" warnings that fail the build with -W.

Fix: read the full file once, count total lines, and clamp stop_line
to total_lines. Also cleaned up file reading with a context manager.
@boolangery
boolangery merged commit bba82a6 into master Jul 20, 2026
4 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.

1 participant