Use ruff in ruff workflow

This commit is contained in:
2024-12-22 05:17:45 +01:00
parent 9619167d09
commit 6258277d60
2 changed files with 7 additions and 4 deletions

View File

@ -6,11 +6,14 @@ on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Run every day at midnight
env:
RUFF_OUTPUT_FORMAT: github
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- run: uv sync --all-extras --dev
- run: uv run pytest -vv
- uses: astral-sh/ruff-action@v2
- run: ruff check --exit-non-zero-on-fix --verbose
- run: ruff format --check --verbose