Skip to content

Merge refactor branch #68

Merge refactor branch

Merge refactor branch #68

Workflow file for this run

# # on: push
# # jobs:
# # molecule:
# # runs-on: ubuntu-latest
# # strategy:
# # fail-fast: false
# # matrix:
# # config:
# # - os: "centos8"
# # tag: "latest"
# # - os: "nmusatti/ubuntu2204-pys"
# # tag: "latest"
# # - os: "nmusatti/centos-stream8-pys"
# # tag: "latest"
# # steps:
# # # - uses: actions/checkout@v2
# # # with:
# # # path: "${{ github.repository }}"
# # - uses: actions/checkout@v3
# # - name: Molecule
# # uses: MonolithProjects/action-molecule@v1.4.1
# # with:
# # os: ${{ matrix.config.os }}
# # tag: ${{ matrix.config.tag }}
# # molecule_command: converge
# ---
# name: CI
# on:
# - push
# jobs:
# # lint:
# # runs-on: ubuntu-20.04
# # steps:
# # - name: checkout
# # uses: actions/checkout@v3
# # with:
# # path: "${{ github.repository }}"
# # - name: molecule
# # uses: robertdebock/molecule-action@5.0.3
# # with:
# # command: lint
# test:
# # needs:
# # - lint
# runs-on: ubuntu-20.04
# strategy:
# fail-fast: false
# matrix:
# scenario:
# - default
# distros:
# - nmusatti/ubuntu2204-pys
# steps:
# - name: checkout
# uses: actions/checkout@v3
# with:
# path: ${{ github.repository }}
# - name: molecule
# uses: robertdebock/molecule-action@4.0.9
# with:
# options: parallel
# image: ${{ matrix.distros }}
# scenario: ${{ matrix.scenario }}
# command: "test --destroy=never --parallel --all"
# there are bugs on github actions above
# use https://ansible.readthedocs.io/projects/molecule/ci/#github-actions
---
name: Molecule Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
env:
working-directory: ./
defaults:
run:
working-directory: ${{ env.working-directory }}
strategy:
max-parallel: 4
matrix:
python-version: [3.10.12]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install pdm==2.7.4
pdm -V
pdm sync
pdm config check_update false
- name: Test with molecule
run: |
eval $(pdm venv activate)
ansible --version
molecule --version
molecule test --parallel --all