.github/workflows/main.yml #371
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
--- | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '0 4 * * 0' | |
jobs: | |
Tests: | |
name: Test role | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
ansible: | |
- "2.12" | |
- "2.13" | |
- "2.14" | |
scenario: | |
- pdns-rec-48 | |
- pdns-rec-49 | |
- pdns-rec-50 | |
- pdns-rec-master | |
fail-fast: false | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Install python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install tox tox-gh-actions | |
- name: Run the tests | |
run: tox -- molecule test -s ${{ matrix.scenario }} | |
env: | |
ANSIBLE: ${{ matrix.ansible }} |