-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move linting checks out of analysis workflow, since that runs on the …
…PR target
- Loading branch information
1 parent
268e246
commit 9ae9220
Showing
2 changed files
with
23 additions
and
23 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 |
---|---|---|
|
@@ -31,29 +31,6 @@ on: | |
|
||
jobs: | ||
|
||
run_linting_checks: | ||
name: Linting checks | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
|
||
- name: Install linters | ||
run: | | ||
python3 build_tooling/format.py --install-tools | ||
- name: Lint Python | ||
if: always() | ||
run: | | ||
python3 build_tooling/format.py --check --type python \ | ||
|| 1 # formatting not enforced yet | ||
- name: Lint C++ | ||
if: always() | ||
run: | | ||
python3 build_tooling/format.py --check --type cpp \ | ||
|| 1 # formatting not enforced yet | ||
get_commits_to_benchmark: | ||
name: Get tag commits | ||
runs-on: ubuntu-22.04 | ||
|
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 |
---|---|---|
|
@@ -39,6 +39,29 @@ jobs: | |
cibuildwheel_ver: "2.21.3" | ||
force_update: false | ||
|
||
run_linting_checks: | ||
name: Linting checks | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
|
||
- name: Install linters | ||
run: | | ||
python3 build_tooling/format.py --install-tools | ||
- name: Lint Python | ||
if: always() | ||
run: | | ||
python3 build_tooling/format.py --check --type python \ | ||
|| true # formatting not enforced yet | ||
- name: Lint C++ | ||
if: always() | ||
run: | | ||
python3 build_tooling/format.py --check --type cpp \ | ||
|| true # formatting not enforced yet | ||
common_config: | ||
needs: [cibw_docker_image] | ||
runs-on: ubuntu-22.04 | ||
|