Files
gitea-ci/.gitea/workflows/ci.yml
Username 42de568eae
All checks were successful
CI / Lint & Check (push) Successful in 11s
ci: include style.py in lint checks
2026-01-18 17:50:48 +01:00

38 lines
881 B
YAML

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint & Check
runs-on: ubuntu-latest
container:
image: python:3.11-slim
steps:
- name: Setup and checkout
run: |
apt-get update -qq && apt-get install -yqq --no-install-recommends git >/dev/null
git clone --depth 1 --branch "${GITHUB_REF_NAME}" \
"https://oauth2:${{ github.token }}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" .
- name: Install tools
run: pip install -q ruff
- name: Syntax check
run: python -m py_compile gitea-ci.py style.py
- name: Lint
run: ruff check gitea-ci.py style.py
- name: Test --help
run: python gitea-ci.py --help