interim fix: pin latest ansible version due to ansible/molecule#4017 #171
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim: tabstop=2 expandtab shiftwidth=2 softtabstop=2 smartindent nu | |
--- | |
name: molecule test | |
on: | |
pull_request: | |
push: | |
schedule: | |
- cron: "10 6 * * 1" | |
jobs: | |
molecule: | |
name: ansible | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ansible: | |
- latest | |
- pinned | |
- legacy | |
distro: | |
- debian11 | |
- debian12 | |
include: | |
- ansible: latest | |
pip3deps: 'ansible==8.2.0 ansible-core==2.15.2 molecule "molecule-plugins[docker]" yamllint ansible-lint "requests<2.29" "urllib3<2"' | |
- ansible: pinned | |
pip3deps: '"ansible==7.4.0" "molecule[docker,lint]==3.5.2" "yamllint==1.26.0" "ansible-lint==6.4.0" "requests<2.29" "urllib3<2"' | |
- ansible: legacy | |
pip3deps: '"ansible==2.9.27" "molecule[docker,lint]==3.2.3" "yamllint==1.24.2" "ansible-lint==4.2.0" "requests<2.29" "urllib3<2"' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install test dependencies. | |
run: pip3 install ${{ matrix.pip3deps }} | |
- name: run molecule tests | |
run: molecule test | |
env: | |
PY_COLORS: '1' | |
ANSIBLE_FORCE_COLOR: '1' | |
MOLECULE_DISTRO: ${{ matrix.distro }} |