Skip to content

Commit

Permalink
fix linters by pined ansible-compat >=24.10.0 <25.0.0
Browse files Browse the repository at this point in the history
Fix bug #846
within this commit ansible/ansible-lint updated to 24.12.2 and config moved to .config folder
  • Loading branch information
yurnov committed Jan 15, 2025
1 parent 6efabd3 commit f861e26
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ profile: production

exclude_paths:
- tests/integration
- tests/unit
- tests/sanity
- meta/
- docs/
1 change: 1 addition & 0 deletions .ansible-lint-ignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# no-changed-when is not requried for examples
plugins/connection/kubectl.py no-changed-when
.ansible/collections/ansible_collections/kubernetes/core/plugins/connection/kubectl.py no-changed-when
11 changes: 9 additions & 2 deletions .github/workflows/linters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
# Install ansible-compat >=24.10.0 <25.0.0, see https://github.com/ansible-collections/kubernetes.core/issues/846
# This is a temporary workaround until https://github.com/ansible/ansible-lint/issues/4477 resolved
- name: Install ansible-compat ansible-compat>=24.10.0,<25.0.0
run: pip install 'ansible-compat>=24.10.0,<25.0.0'
- name: run-ansible-lint
uses: ansible/ansible-lint@v24.7.0
uses: ansible/ansible-lint@v24.12.2

0 comments on commit f861e26

Please sign in to comment.