ci: migrate from Travis CI to GitHub Actions - #14
Merged
Conversation
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
force-pushed
the
ci/github-actions
branch
from
July 19, 2026 21:12
a5bcb30 to
11f5624
Compare
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.
Problem
Travis CI is no longer functional for open-source projects. sphinx-lua still used
.travis.ymlwith Python 2.7 and 3.6.Changes
sphinx-buildon Python 3.9, 3.10, 3.11, 3.12python_requires='>=3.9'Modeled after the existing py-lua-parser workflows.