Skip to content

Commit

Permalink
refactor: update autofix workflow to target Python files and optimize…
Browse files Browse the repository at this point in the history
… environment setup
  • Loading branch information
ogabrielluiz committed Nov 13, 2024
1 parent dcd4bf8 commit be58ac0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/py_autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ name: autofix.ci
on:
pull_request:
paths:
- "poetry.lock"
- "pyproject.toml"
- "src/backend/**"
- "**/*.py"
env:
POETRY_VERSION: "1.8.2"

Expand All @@ -14,7 +12,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: install-pinned/ruff@9ebc31a5721a0fb034f915e4bbcb2ee6feeaecbc
- run: ruff check --fix-only .
- run: ruff format .
- name: "Setup Environment"
uses: ./.github/actions/setup-uv
- run: uv run ruff check --fix-only .
- run: uv run ruff format .
- uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a
- name: Minimize uv cache
run: uv cache prune --ci

0 comments on commit be58ac0

Please # to comment.