Skip to content

tests: move from lxd -> qemu for autopkgtests #104

tests: move from lxd -> qemu for autopkgtests

tests: move from lxd -> qemu for autopkgtests #104

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: static checks
run: |
sudo apt update
sudo apt build-dep -y ./
sudo apt install -y python3-pytest
pytest-3
# ensure running each test standalone works
for f in test/test_*.py; do
if [ "$(basename $f)" = "test_base.py" ]; then
continue
fi
pytest-3 $f
done
- name: setup
run: |
sudo apt-get update
sudo apt-get install distro-info autopkgtest git-buildpackage genisoimage qemu-system-x86
sudo autopkgtest-buildvm-ubuntu-cloud -r $(distro-info --stable) -o /tmp
- name: build source
run: |
git clean -xfd
gbp buildpackage -us -uc -S -d -nc --git-ignore-branch --git-prebuild=
- name: autopkgtest
# skipping tests is ok
run: autopkgtest -U ../build-area/*.dsc -- qemu /tmp/autopkgtest-$(distro-info --stable)-amd64.img || [ $? == 2 ]