Brian Bjarke Jensen 3104d9748a
Test CI Templates / test-python-code-quality (3.11) (pull_request) Successful in 5s
Test CI Templates / test-python-code-quality (3.12) (pull_request) Successful in 4s
Test CI Templates / test-python-code-quality (true, false, skip-mypy) (pull_request) Successful in 4s
Test CI Templates / test-python-pytest (false, 3.11) (pull_request) Successful in 4s
Test CI Templates / test-python-pytest (true, 3.11) (pull_request) Successful in 5s
Test CI Templates / test-python-pytest (true, 3.12) (pull_request) Successful in 5s
Test CI Templates / test-web-formatting (false, false, 18) (pull_request) Successful in 5s
Test CI Templates / test-web-formatting (false, false, 20) (pull_request) Successful in 5s
Test CI Templates / test-web-formatting (false, true, 20) (pull_request) Successful in 6s
Test CI Templates / test-web-formatting (true, false, 18) (pull_request) Successful in 5s
Test CI Templates / test-web-formatting (true, true, 20) (pull_request) Successful in 4s
Test CI Templates / test-monorepo (pull_request) Successful in 4s
Test CI Templates / validate-syntax (pull_request) Successful in 10s
Test CI Templates / test-python-code-quality (3.10) (pull_request) Successful in 5s
Test CI Templates / test-python-code-quality (false, false, basic) (pull_request) Successful in 4s
Test CI Templates / test-python-code-quality (false, true, skip-pyupgrade) (pull_request) Successful in 4s
Test CI Templates / test-python-pytest (false, 3.12) (pull_request) Successful in 5s
Test CI Templates / test-web-formatting (false, true, 18) (pull_request) Successful in 5s
Test CI Templates / test-web-formatting (true, false, 20) (pull_request) Successful in 4s
Test CI Templates / test-web-formatting (true, true, 18) (pull_request) Successful in 4s
Test CI Templates / test-edge-cases (pull_request) Successful in 4s
Test CI Templates / test-results (pull_request) Successful in 3s
updated readme to reference first release
2025-09-19 21:02:23 +02:00
2025-09-19 20:25:51 +02:00
2025-09-19 19:39:13 +02:00
2025-09-19 20:25:51 +02:00
2025-09-19 20:44:57 +02:00
2025-09-19 11:45:58 +02:00
2025-09-19 19:38:10 +02:00
2025-09-19 20:25:51 +02:00

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

📖 Read the full documentation

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

📖 Read the full documentation

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

📖 Read the full documentation

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:

  1. Ensure backward compatibility
  2. Update documentation
  3. Test with sample projects
  4. Consider versioning with git tags for breaking changes
S
Description
CI pipeline templates
Readme MIT
90 KiB
2025-09-19 21:05:49 +02:00
Languages
Shell 77.9%
Python 21%
JavaScript 1.1%