mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2025-12-23 22:18:19 -05:00
add ruff check to gh workflows
This commit is contained in:
9
.github/workflows/build-push-backend.yml
vendored
9
.github/workflows/build-push-backend.yml
vendored
@@ -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
25
.github/workflows/python-lint.yaml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user