Skip to content

Commit

Permalink
Fix lint workflow trigger + Warn only for some Ansible-lint checks
Browse files Browse the repository at this point in the history
  • Loading branch information
JGoutin committed May 1, 2023
1 parent 326bd19 commit 7685a90
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ exclude_paths:
- tests
skip_list:
- risky-file-permissions
warn_list:
- experimental
- schema[meta]
- name[template]
- galaxy[no-changelog]
- meta-runtime[unsupported-version]
6 changes: 5 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
paths:
- "**.yml"
- "**.py"
- ".ansible-lint"
- ".flake8"
- ".yamllint.yml"
- ".github/workflows/lint.yml"

jobs:
static-analysis:
Expand Down Expand Up @@ -53,7 +57,7 @@ jobs:
run: radon cc -n D .
if: ${{ always() }}

- name: Python code maintenability
- name: Python code maintainability
run: radon mi -n B .
if: ${{ always() }}

Expand Down

0 comments on commit 7685a90

Please sign in to comment.