Skip to content

Conversation

@yu-ta-sato
Copy link
Collaborator

Description

This pull request updates the CI workflow and pre-commit configuration to improve testing reliability and type checking. The main changes include splitting pre-commit and test jobs in the GitHub Actions workflow, ensuring tests run across multiple Python versions, and switching to type stub packages for better static analysis.

CI workflow improvements:

  • Split the workflow in .github/workflows/test.yml into separate pre-commit and test jobs. The pre-commit job now runs only once on Python 3.12, while the test job runs in parallel for Python versions 3.10, 3.11, 3.12, and 3.13. This improves efficiency and coverage of the test suite.
  • Updated caching keys and dependency setup in the workflow to match the new job structure and Python version selection.

Pre-commit configuration improvements:

  • Replaced the torch package with types-torch in .pre-commit-config.yaml to use type stubs for better static type checking.
  • Ensured types-requests and other type stub packages are included for improved linting and code analysis in pre-commit hooks.

Related Issues

NA

Checklist

  • I have read the Contributing Guide.
  • I have updated the documentation, if necessary.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • Pre-commit checks passed locally.

@codecov
Copy link

codecov bot commented Jan 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@yu-ta-sato yu-ta-sato merged commit a713950 into c2g-dev:main Jan 13, 2026
7 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