ci: add Gitea Actions workflow for tests and linters
- .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
This commit is contained in:
26
.gitea/workflows/checks.yaml
Normal file
26
.gitea/workflows/checks.yaml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
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
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
# redmine-reporter
|
# redmine-reporter
|
||||||
|
|
||||||
|
[](https://git.akokos.ru/artem.kokos/redmine-reporter/actions)
|
||||||
|
|
||||||
CLI-инструмент для генерации отчётов по задачам Redmine на основе записей о затраченном времени.
|
CLI-инструмент для генерации отчётов по задачам Redmine на основе записей о затраченном времени.
|
||||||
|
|
||||||
Проект предназначен для внутреннего использования с `https://red.eltex.loc/`.
|
Проект предназначен для внутреннего использования с `https://red.eltex.loc/`.
|
||||||
|
|||||||
@@ -33,6 +33,9 @@ dev = [
|
|||||||
"pytest>=7.0",
|
"pytest>=7.0",
|
||||||
"mypy>=1.0",
|
"mypy>=1.0",
|
||||||
"ruff>=0.1.0",
|
"ruff>=0.1.0",
|
||||||
|
"black>=24.0",
|
||||||
|
"isort>=5.0",
|
||||||
|
"setuptools>=61.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
|
|||||||
Reference in New Issue
Block a user