Raja's Exocortex

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 check

Depends On

  1. Self hosted Gitea gitea
  2. Self hosted ACT Runners gitea-act-runner