Skip to content

feat: Add QEMU datasource #1247

feat: Add QEMU datasource

feat: Add QEMU datasource #1247

Workflow file for this run

name: Pycloudlib CI
on: [pull_request]
concurrency:
group: "ci-${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
tox-defaults:
runs-on: ubuntu-20.04
steps:
- name: Install dependencies
run: sudo DEBIAN_FRONTEND=noninteractive apt-get -qqy install tox
- name: Git checkout
uses: actions/checkout@v3
- name: Run tox
run: tox
integration-tests:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt-get update -q
sudo apt-get install -qqy distro-info tox
sudo snap install lxd
- name: Initialize LXD
run: |
ssh-keygen -P "" -q -f ~/.ssh/id_rsa
mkdir -p ~/.config
echo "[lxd]" > ~/.config/pycloudlib.toml
sudo adduser $USER lxd
# Jammy GH Action runners have docker installed, which edits iptables
# in a way that is incompatible with lxd.
# https://linuxcontainers.org/lxd/docs/master/howto/network_bridge_firewalld/#prevent-issues-with-lxd-and-docker
sudo iptables -I DOCKER-USER -j ACCEPT
sudo lxd init --auto
- name: Git checkout
uses: actions/checkout@v3
- name: Run CI integration tests
run: sg lxd -c 'tox -e integration-tests-ci'