From b67af703c8fa35e85110a1c77d7c550b803a594a Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Fri, 7 Nov 2025 16:22:25 +0100 Subject: Add scheduled weekly test and pin testing lib versions --- .github/workflows/ci.yml | 10 +++++++--- molecule/default/molecule.yml | 1 + requirements.yml | 7 ++++--- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 80eaacc..8b0048c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,10 @@ --- name: "CI" -'on': ["push", "pull_request"] +'on': + push: + pull_request: + schedule: + - cron: '0 12 * * 5' jobs: lint: runs-on: ubuntu-latest @@ -46,9 +50,9 @@ jobs: path: "ansible-distro-configure" - uses: actions/setup-python@v5 with: - python-version: "3.x" + python-version: "3.13" - name: Install dependencies - run: pip3 install ansible molecule molecule-plugins[docker] + run: pip3 install ansible-core==2.19.3 molecule==25.9.0 molecule-plugins[docker,podman]==25.8.12 - name: Copy distro install example files run: | # Use example files for testing instead of encrypted files diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index e4fa13a..f749342 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -3,6 +3,7 @@ role_name_check: 1 dependency: name: galaxy options: + requirements-file: ../../requirements.yml ignore-errors: true driver: name: docker diff --git a/requirements.yml b/requirements.yml index 6dce4c4..bf74262 100644 --- a/requirements.yml +++ b/requirements.yml @@ -1,7 +1,8 @@ --- collections: - name: community.general - version: ">=10.7.0,<11.0.0" - + version: "10.7.0" - name: ansible.posix - version: ">=1.6.0,<2.0.0" + version: "2.1.0" + - name: community.docker + version: "4.8.1" -- cgit v1.2.3