Commit bac92f9
ci: Add GitHub Actions workflow for Python testing
Implement comprehensive CI/CD pipeline with GitHub Actions to ensure code quality and test coverage across multiple Python versions.
Workflow features:
- Multi-version testing (Python 3.9, 3.10, 3.11, 3.12, 3.13)
- Triggers on push and pull requests
- Matrix strategy for parallel execution
Quality checks:
1. Linting with Ruff
- Fast Rust-based linter
- Catches common errors and code smells
2. Format verification with Ruff
- Ensures consistent code style
- Fails if code not formatted
3. Type checking with mypy
- Strict type validation
- Catches type errors before runtime
4. Unit tests with pytest
- Full test suite execution
- Coverage reporting (XML and terminal)
- Verbose output for debugging
5. Code coverage upload
- Uploads to Codecov (Python 3.13 only)
- Tracks coverage trends over time
- Non-blocking for CI
Dependencies updated:
- Added pytest-cov for coverage reporting
- Updated to Poetry-based workflow
- Uses official GitHub Actions (v4/v5)
Benefits:
- Catch bugs before merge
- Ensure compatibility across Python versions
- Maintain code quality standards
- Track test coverage metrics
- Fast feedback loop for developers
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 2e704c7 commit bac92f9
2 files changed
+47
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
0 commit comments