Files
meshcore-repeater-observer/.gitea/workflows/ci.yml
T
renovate-bot b49ba252b5
ci / test (push) Successful in 2m6s
ci / test (pull_request) Successful in 2m10s
chore(deps): update https://git.rfa.cz/tth-pub/ci-actions action to v14
2026-11-05 15:00:37 +00:00

45 lines
970 B
YAML

# Lint + tests on every push and PR; the image is built by image.yml.
name: ci
"on":
push:
pull_request:
workflow_dispatch:
env:
RUFF_VERSION: "0.15.7"
MYPY_VERSION: "1.19.1"
YAMLLINT_VERSION: "1.38.0"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: gitleaks
uses: https://git.rfa.cz/tth-pub/ci-actions/gitleaks@v14
with:
mode: block
- uses: actions/setup-python@v7
with:
python-version: "3.15"
- name: Install
run: |
set -euo pipefail
python -m pip install --quiet ".[dev]" \
"ruff==$RUFF_VERSION" "mypy==$MYPY_VERSION" "yamllint==$YAMLLINT_VERSION"
- name: Lint
run: |
set -euo pipefail
ruff check .
ruff format --check .
mypy meshcore_repeater_observer.py
yamllint .gitea .yamllint
- name: Tests
run: python -m pytest -q