Modernize CI workflow and API parser#226
Merged
thibaudcolas merged 2 commits intospringload:masterfrom Jan 2, 2026
Merged
Conversation
Upgrades the API generator script from Python 2 compatibility to modern Python 3 practices to improve maintainability and reliability. Changes include: - Add type hints to all functions for better code documentation - Replace deprecated datetime.utcnow() with timezone-aware datetime.now() - Use pathlib.Path for cleaner file operations instead of open()/codecs - Add automatic directory creation eliminating need for manual mkdir - Replace bare except with specific exception handling for better debugging - Use f-strings instead of % formatting for readability - Add proper docstrings to document function behavior 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Updates GitHub Actions workflow to use modern versions and removes manual directory creation now handled by the upgraded API script. Workflow changes: - Upgrade to latest action versions (checkout@v6, setup-python@v5) - Use Ruby 3.3 and Python 3.14 for current language versions - Separate build and deploy jobs following GitHub Pages best practices - Replace deprecated peaceiris/actions-gh-pages with actions/deploy-pages - Remove manual mkdir as api.py now handles directory creation automatically - Trigger on pull requests for validation before merge Also adds .claude directory to .gitignore to exclude Claude Code configuration files from version control. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
thibaudcolas
approved these changes
Jan 2, 2026
Collaborator
thibaudcolas
left a comment
There was a problem hiding this comment.
Checks now running!
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.
Updates the repository's CI infrastructure and README API parser to use modern Python 3 and GitHub Actions best practices.
Changes
Python API Parser (.github/api.py)
datetime.utcnow()with timezone-awaredatetime.now(timezone.utc)pathlib.Pathfor cleaner file operationsmkdirin CI)exceptGitHub Actions Workflow
peaceiris/actions-gh-pageswithactions/deploy-pages@v4mkdircommand (now handled by the upgraded Python script)Other
.claudedirectory to.gitignorefor Claude Code configuration filesTesting
The API parser script will be validated automatically when this PR runs through CI. The workflow changes follow GitHub's recommended patterns for Pages deployment.