use the api to create a set of reusable fixtures #224
Workflow file for this run
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
--- | |
name: Test | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- 'container-images/**' | |
- '.github/workflows/container.yml' | |
pull_request: | |
paths-ignore: | |
- 'container-images/**' | |
- '.github/workflows/container.yml' | |
concurrency: | |
group: ${{ github.ref_name }}-${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
ansible-lint: | |
name: Ansible Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run ansible-lint | |
uses: ansible/ansible-lint@main | |
with: | |
requirements_file: requirements.yml | |
tests: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Setup libvirt for Vagrant | |
run: | | |
sudo add-apt-repository --yes ppa:evgeni/vagrant | |
sudo apt-get update | |
sudo apt-get install -y --no-install-recommends vagrant vagrant-libvirt libvirt-clients libvirt-daemon-system libvirt-daemon qemu-system-x86 qemu-utils dnsmasq | |
sudo chmod 666 /var/run/libvirt/libvirt-sock | |
- name: Install Ansible | |
run: pip install --upgrade ansible-core | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Install collection dependencies | |
run: ansible-galaxy install -r requirements.yml | |
- name: Start VMs | |
run: | | |
vagrant up quadlet | |
vagrant up client | |
- name: Run deployment | |
run: | | |
ansible-playbook playbooks/setup.yaml | |
ansible-playbook playbooks/deploy.yaml | |
- name: Run tests | |
run: ./run_tests |