Skip to content

Commit

Permalink
💚 Update ruff action
Browse files Browse the repository at this point in the history
  • Loading branch information
BalconyJH committed Jan 10, 2025
1 parent 88eed65 commit 76bebef
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
- main
pull_request:
paths:
- "envs/**"
- "aioarxiv/**"
- "tests/**"
- ".github/actions/setup-python/**"
Expand All @@ -19,11 +18,21 @@ jobs:
name: Ruff Lint
runs-on: ubuntu-latest
concurrency:
group: pyright-${{ github.ref }}
group: ruff-${{ github.ref }}
cancel-in-progress: true

steps:
- uses: actions/checkout@v4

- name: Run Ruff Lint
uses: chartboost/ruff-action@v1
- uses: actions/cache@v4
with:
path: ~/.cache/ruff
key: ${{ runner.os }}-ruff-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-ruff-
- name: Run Ruff
uses: astral-sh/ruff-action@v1
with:
version: latest
args: --statistics --diff

0 comments on commit 76bebef

Please sign in to comment.