-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MNT] fix failing
code-quality
CI step (#483)
This PR fixes the failing `code-quality` CI step, by replacing the deprecated `pre-commit` action.
- Loading branch information
Showing
1 changed file
with
14 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|