-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: migrate from
master
to main
branch
- Loading branch information
Showing
3 changed files
with
47 additions
and
42 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
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
name: BNPPF Parser Syntax Checks | ||
|
||
on: | ||
workflow_call: | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
syntax: | ||
name: Syntax | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Commitlint | ||
uses: wagoid/commitlint-github-action@v5 | ||
with: | ||
failOnWarnings: true | ||
|
||
- name: Run YAMLlint | ||
run: pip install --user yamllint && yamllint --strict . | ||
|
||
- name: Install Flake8 and PyLint | ||
run: pip install pylint flake8 | ||
|
||
- name: Run Flake8 | ||
run: | | ||
# stop the build if there are Python syntax errors or undefined names | ||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics |
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 |
---|---|---|
|
@@ -4,6 +4,8 @@ name: BNPPF Parser Tests | |
on: | ||
workflow_call: | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|