build(deps): bump actions/checkout from 4 to 6 #16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Run ruff | |
| on: | |
| workflow_dispatch: | |
| workflow_call: | |
| push: | |
| branches: [main, development] | |
| paths-ignore: | |
| - "**/*.md" | |
| pull_request: | |
| paths-ignore: | |
| - "**/*.md" | |
| permissions: | |
| contents: read | |
| jobs: | |
| ruff: | |
| name: Run ruff check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out the repo | |
| uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: "uv.lock" | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: Install the project | |
| run: uv sync --all-extras --dev | |
| - name: Run ruff check | |
| run: uv run ruff check --output-format=github . | |
| continue-on-error: true | |
| id: ruff-check | |
| - name: Run ruff format check | |
| run: uv run ruff format --check . | |
| continue-on-error: true | |
| id: ruff-format | |
| - name: Report ruff errors | |
| if: steps.ruff-check.outcome == 'failure' || steps.ruff-format.outcome == 'failure' | |
| run: | | |
| echo "::error::Ruff checks failed. Please run 'uv run ruff check --fix .' and 'uv run ruff format .' locally to fix issues." | |
| exit 1 |