add ruff check to gh workflows

This commit is contained in:
maxDorninger
2025-06-22 17:49:54 +02:00
parent 9360b88842
commit 59f7c4fda6
2 changed files with 34 additions and 0 deletions

View File

@@ -18,7 +18,16 @@ on:
workflow_dispatch:
jobs:
lint-code:
name: Lint Python Code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v3
run-tests:
needs: lint-code
name: Run Python Tests
runs-on: ubuntu-latest

25
.github/workflows/python-lint.yaml vendored Normal file
View File

@@ -0,0 +1,25 @@
name: Ruff
on:
push:
paths:
- 'media_manager/**'
- 'alembic/**'
- 'pyproject.toml'
- 'uv.lock'
- '.github/workflows/python-lint.yaml'
- 'tests/**'
pull_request:
paths:
- 'media_manager/**'
- 'alembic/**'
- 'pyproject.toml'
- 'uv.lock'
- '.github/workflows/python-lint.yaml'
- 'tests/**'
workflow_dispatch:
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v3