- .gitea/workflows/checks.yaml: runs on push to main and every PR, matrix Python 3.10-3.13 (matches requires-python >=3.10), steps: isort, black, ruff check, ruff format, mypy, pytest - dev extras gain black, isort (needed by pip install -e .[dev] in CI) and setuptools>=61.0 (test_formatters_found_by_setuptools imports find_packages at runtime; Python 3.12+ venvs no longer bundle it) - README gains pipeline status badge Closes #53
27 lines
666 B
YAML
27 lines
666 B
YAML
name: checks
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
checks:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.10", "3.11", "3.12", "3.13"]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
cache: pip
|
|
- run: pip install -e .[dev]
|
|
- run: isort --check-only redmine_reporter tests
|
|
- run: black --check redmine_reporter tests
|
|
- run: ruff check redmine_reporter tests
|
|
- run: ruff format --check redmine_reporter tests
|
|
- run: mypy redmine_reporter
|
|
- run: pytest -v
|