Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use ubuntu20 for cgroup compatibility #20

Merged
merged 3 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- distro: centos8
experimental: true
molecule_scenario: "-s default"
uses: trfore/ansible-role/.github/workflows/test_ansible.yml@main # remote repo
uses: ./.github/workflows/test.yml
with:
distro: ${{ matrix.distro }}
experimental: ${{ matrix.experimental }}
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Run Molecule Test
on:
workflow_call:
inputs:
distro:
required: true
type: string
experimental:
default: false
required: false
type: boolean
molecule_glob:
default: "molecule/*/molecule.yml"
required: false
type: string
molecule_scenario:
default: "" # ex: "-s SCENARIO_NAME"
required: false
type: string
requirements_file:
default: "requirements.txt"
required: false
type: string
jobs:
molecule:
runs-on: ubuntu-20.04
continue-on-error: ${{ inputs.experimental }}
env:
PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1"
MOLECULE_GLOB: ${{ inputs.molecule_glob }}
MOLECULE_NAME: ${{ inputs.distro }}
MOLECULE_IMAGE: trfore/docker-${{ inputs.distro }}-systemd
steps:
- name: Check out codebase
uses: actions/checkout@v4

- name: Setup python 3
uses: actions/setup-python@v5
with:
python-version: "3.x"

- name: Install dependencies
run: pip install -r ${{ inputs.requirements_file }}

- name: Run molecule test
run: molecule test ${{ inputs.molecule_scenario }}
11 changes: 6 additions & 5 deletions requirements/dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
-r ../requirements.txt
ansible>=7.4.0
ansible-compat>=4.1.7
ansible-lint>=6.14.0
molecule>=4.0.0,<25.0.0
molecule-plugins[docker]>=23.0.0
ansible==9.6.1
ansible-compat==24.6.1
ansible-lint==24.6.0
molecule==24.6.0
molecule-plugins[docker]==23.5.3
paramiko>=3.0.0
pre-commit>=3.2.0
pylint>=3.0.0
requests<2.32.0
tox>=4.0.0
yamllint>=1.30.0
Loading