Skip to content

vm_manager: add import command for cluster mode #12

vm_manager: add import command for cluster mode

vm_manager: add import command for cluster mode #12

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install cqfd
run: |
git clone https://github.com/savoirfairelinux/cqfd.git /tmp/cqfd
cd /tmp/cqfd
sudo make install
- name: Initialize cqfd container
run: cqfd init
- name: Check formatting
run: cqfd -b check_format
- name: Run flake8
run: cqfd -b flake
test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
qemu-system-x86 \
libvirt-daemon-system \
libvirt-dev \
pkg-config
- name: Start libvirtd and grant access
run: |
sudo systemctl start libvirtd
sudo usermod -aG libvirt "$USER"
- name: Install package with test deps
run: pip install ".[test]"
- name: Run tests
run: sg libvirt -c "pytest tests/ -v --tb=short"
- name: Install documentation dependencies
run: pip install ".[docs]"
- name: Build documentation
run: sphinx-build -b html docs/ docs/_build/html