Skip to content

Commit

Permalink
[MNT] fix failing code-quality CI step (#483)
Browse files Browse the repository at this point in the history
This PR fixes the failing `code-quality` CI step, by replacing the
deprecated `pre-commit` action.
  • Loading branch information
fkiraly authored Oct 12, 2024
1 parent 098b7f8 commit 91d6db0
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,23 @@ concurrency:

jobs:
code-quality:
name: code-quality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- id: file_changes
uses: trilom/[email protected]
with:
output: " "
- name: List changed files
run: echo '${{ steps.file_changes.outputs.files}}'
- uses: pre-commit/[email protected]
- name: repository checkout step
uses: actions/checkout@v4
- name: python environment step
uses: actions/setup-python@v5
with:
extra_args: --files ${{ steps.file_changes.outputs.files}}
- name: Check for missing init files
python-version: "3.11"
- name: install pre-commit
run: python3 -m pip install pre-commit
- id: changed-files
name: identify modified files
uses: tj-actions/changed-files@v45
- name: run pre-commit hooks on modified files
run: pre-commit run --color always --files ${{ steps.changed-files.outputs.all_changed_files }} --show-diff-on-failure
- name: check missing __init__ files
run: build_tools/fail_on_missing_init_files.sh
shell: bash

Expand Down

0 comments on commit 91d6db0

Please sign in to comment.