Python Ruff Gitea Action Workflow
Run python code linting using Ruff in a Gitea Action Workflow. Trigger the workflow on pull requests or manually.
Filename: python-ruff.yaml
# Filename: .github/workflows/python-ruff.yaml
name: Ruff
on:
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
python-ruff:
runs-on: ubuntu-latest
name: Run Ruff Check
steps:
- name: Checkout code
uses: actions/checkout@v6
- uses: astral-sh/ruff-action@v3
with:
header: "Ruff Check"
run: ruff checkDepends On
- Self hosted Gitea gitea
- Self hosted ACT Runners gitea-act-runner