workflow/lint: add setup-python/cache, update checkout
Some checks failed
ci-lint / test (push) Failing after 43s
Some checks failed
ci-lint / test (push) Failing after 43s
This commit is contained in:
parent
48c7d34765
commit
48e05250e5
1 changed files with 6 additions and 7 deletions
|
@ -20,23 +20,22 @@ jobs:
|
||||||
echo -e 'max_parallel_downloads=20\ndeltarpm=False\nfastestmirror=False' | tee -a /etc/dnf/dnf.conf
|
echo -e 'max_parallel_downloads=20\ndeltarpm=False\nfastestmirror=False' | tee -a /etc/dnf/dnf.conf
|
||||||
dnf -yq install nodejs git pipx
|
dnf -yq install nodejs git pipx
|
||||||
|
|
||||||
- uses: actions/checkout@v3 # definitely needs nodejs, probably git
|
- uses: actions/checkout@v4 # v5 needs nodejs 24+, f42 ships 22
|
||||||
|
- uses: actions/setup-python@v6
|
||||||
|
with:
|
||||||
|
python-version: '3.14'
|
||||||
|
cache: 'pip'
|
||||||
|
|
||||||
- name: ansible/collections
|
- name: ansible/collections
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
echo /root/.local/bin >> $FORGEJO_PATH
|
pip install ansible-core ansible-lint
|
||||||
pipx install ansible-core ansible-lint
|
|
||||||
ansible-galaxy collection install -r meta/requirements.yml
|
ansible-galaxy collection install -r meta/requirements.yml
|
||||||
env:
|
env:
|
||||||
PY_COLORS: '1'
|
PY_COLORS: '1'
|
||||||
ANSIBLE_FORCE_COLOR: '1'
|
ANSIBLE_FORCE_COLOR: '1'
|
||||||
|
|
||||||
- name: ansible-lint
|
- name: ansible-lint
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
cat $FORGEJO_PATH
|
|
||||||
echo /root/.local/bin >> $FORGEJO_PATH
|
|
||||||
ansible-lint
|
ansible-lint
|
||||||
env:
|
env:
|
||||||
PY_COLORS: '1'
|
PY_COLORS: '1'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue