frame/.forgejo/workflows/lint.yml

25 lines
685 B
YAML

name: lint
on:
push:
pull_request:
jobs:
ruff:
runs-on: docker
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
steps:
- uses: https://github.com/actions/checkout@11d5960a326750d5838078e36cf38b85af677262
- name: Install uv
uses: https://github.com/astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86
with:
enable-cache: true
- name: Set up Python
run: uv python install 3.11
- name: Run lint.sh in check mode
run: ./lint.sh --check
if: ${{ github.actor != 'renovate-bot' && !startsWith(github.ref, 'refs/heads/renovate/') && !startsWith(github.head_ref, 'renovate/') }}