zfs_dkms/.forgejo/workflows/lint.yml
Josh Lay 9723e1e45d
Some checks failed
ci-lint / test (push) Failing after 37s
workflow/lint: setup-python to v5, try to fix pip-install
2025-10-19 08:30:55 -05:00

46 lines
1.1 KiB
YAML

name: ci-lint
on: # yamllint disable-line rule:truthy
pull_request:
push:
branches:
- master
schedule:
- cron: "20 4 * * 0"
jobs:
test:
runs-on: docker
container:
image: fedora:42 # lock to *latest stable*; rawhide/next is 'latest' tag
steps:
- name: nodejs/git/pip
run: |
echo -e 'max_parallel_downloads=20\ndeltarpm=False\nfastestmirror=False' | tee -a /etc/dnf/dnf.conf
dnf -yq --no-docs --setopt=install_weak_deps=False in nodejs git-core python3-pip
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
cache: 'pip'
pip-install: ansible-core ansible-lint
- name: cache '.ansible/collections'
id: cache-collections
uses: actions/cache@v4
with:
path: /root/.ansible
key: zfs_dkms-dot-ansible
- name: ansible collections
run: |
ansible-galaxy collection install -r meta/requirements.yml
- name: ansible-lint
run: |
ansible-lint
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'