Skip to content

Commit

Permalink
Merge branch 'dev' into poc
Browse files Browse the repository at this point in the history
  • Loading branch information
Sevhena authored Nov 25, 2024
2 parents 0cf7f41 + c72ac15 commit 6333031
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions .github/workflows/python-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches: [dev]
paths:
- "src/**/*.py"

jobs:
lint:
runs-on: ubuntu-latest
Expand All @@ -26,9 +26,31 @@ jobs:
with:
token: ${{ steps.app-token.outputs.token }}

- name: Run Ruff
uses: astral-sh/ruff-action@v1
# Get changed .py files
- name: Get changed .py files
id: changed-py-files
uses: tj-actions/changed-files@v45
with:
files: |
**/*.py
files_ignore: |
tests/input
tests/_input_copies
diff_relative: true # Get the list of files relative to the repo root

- name: Install Python
uses: actions/setup-python@v5
with:
args: "check --config pyproject.toml"
changed-files: "true"
python-version: "3.11"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Run Ruff
env:
ALL_CHANGED_FILES: ${{ steps.changed-py-files.outputs.all_changed_files }}
run: |
ruff check $ALL_CHANGED_FILES --output-format=github .

0 comments on commit 6333031

Please sign in to comment.