v1.0.0
Test CI Templates / test-python-pytest (false, 3.12) (push) Waiting to run
Test CI Templates / test-python-pytest (true, 3.11) (push) Waiting to run
Test CI Templates / test-python-pytest (true, 3.12) (push) Waiting to run
Test CI Templates / test-web-formatting (false, false, 18) (push) Waiting to run
Test CI Templates / test-web-formatting (false, false, 20) (push) Waiting to run
Test CI Templates / test-web-formatting (false, true, 18) (push) Waiting to run
Test CI Templates / test-web-formatting (false, true, 20) (push) Waiting to run
Test CI Templates / test-web-formatting (true, false, 18) (push) Waiting to run
Test CI Templates / test-web-formatting (true, false, 20) (push) Waiting to run
Test CI Templates / test-web-formatting (true, true, 18) (push) Waiting to run
Test CI Templates / test-web-formatting (true, true, 20) (push) Waiting to run
Test CI Templates / test-monorepo (push) Waiting to run
Test CI Templates / test-edge-cases (push) Waiting to run
Test CI Templates / test-results (push) Blocked by required conditions
Test CI Templates / validate-syntax (push) Successful in 9s
Test CI Templates / test-python-code-quality (3.10) (push) Successful in 4s
Test CI Templates / test-python-code-quality (3.11) (push) Successful in 5s
Test CI Templates / test-python-code-quality (3.12) (push) Successful in 4s
Test CI Templates / test-python-code-quality (false, false, basic) (push) Successful in 5s
Test CI Templates / test-python-code-quality (false, true, skip-pyupgrade) (push) Successful in 4s
Test CI Templates / test-python-code-quality (true, false, skip-mypy) (push) Successful in 5s
Test CI Templates / test-python-pytest (false, 3.11) (push) Successful in 4s
Reviewed-on: #1
CI Templates
Reusable Gitea Actions workflow templates for consistent code quality across repositories.
Available Templates
Python Code Quality (.gitea/workflows/python/code-quality.yml)
A comprehensive Python code quality pipeline including type checking, linting, formatting, and modernization.
Features:
- Type checking with mypy
- Linting with ruff
- Code formatting with ruff format
- Python syntax modernization with pyupgrade
- UV package management support
Python Test Pipeline (.gitea/workflows/python/pytest.yml)
A comprehensive Python testing pipeline using pytest with coverage reporting and PR comment integration.
Features:
- Pytest testing with configurable arguments
- Coverage reporting with pytest-cov
- PR comment integration for coverage reports
- UV package management support
- Monorepo support
Web/General Formatting (.gitea/workflows/web/formatting.yml)
A formatting pipeline for web technologies and general file formats using Prettier and other tools.
Features:
- Prettier formatting for JS, TS, JSON, YAML, Markdown, HTML, CSS
- Optional YAML validation with yamllint
- Optional JSON syntax validation
- Node.js environment setup
Usage
For Python Projects
name: Code Quality
on: [push, pull_request]
jobs:
python-quality:
uses: gitea.gt-proj.com/brian/CI-templates/.gitea/workflows/python/[email protected]
For Web/General Projects
name: Formatting
on: [push, pull_request]
jobs:
formatting:
uses: gitea.gt-proj.com/brian/CI-templates/.gitea/workflows/web/[email protected]
For Mixed Projects
name: Code Quality
on: [push, pull_request]
jobs:
python-quality:
code-quality:
uses: gitea.gt-proj.com/brian/CI-templates/.gitea/workflows/python/[email protected]
with:
working-directory: "./backend"
web-formatting:
uses: gitea.gt-proj.com/brian/CI-templates/.gitea/workflows/web/[email protected]
with:
working-directory: "./frontend"
Repository Structure
.gitea/workflows/
├── python/
│ ├── code-quality.yml # Python code quality template
│ └── pytest.yml # Python testing template
└── web/
└── formatting.yml # Web/general formatting template
README-python-code-quality.md # Python code quality documentation
README-python-pytest.md # Python testing documentation
README-web-formatting.md # Web formatting documentation
Contributing
When updating templates:
- Ensure backward compatibility
- Update documentation
- Test with sample projects
- Consider versioning with git tags for breaking changes
Releases
1
CI Workflow Templates v1.0.0
Latest
Languages
Shell
77.9%
Python
21%
JavaScript
1.1%