From 25a96ec6b83c83558155276333ecf58befca5b64 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Thu, 4 Jul 2024 15:49:00 -0400 Subject: [PATCH] github: use canonical/setup-lxd action to setup LXD Signed-off-by: Simon Deziel --- .github/workflows/tests.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 95dc01d4..ba035d2f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -49,18 +49,12 @@ jobs: with: python-version: ${{ matrix.python-version }} + - name: Setup LXD + uses: canonical/setup-lxd + - name: Install dependencies run: | set -x - - sudo apt-get autopurge moby-containerd docker uidmap -y - sudo ip link delete docker0 - sudo nft flush ruleset || sudo iptables -I DOCKER-USER -j ACCEPT - - sudo snap refresh lxd - sudo adduser "$USER" lxd - sudo lxd init --auto - pip install --upgrade pip tox codecov - name: Coverage @@ -70,7 +64,7 @@ jobs: - name: Integration run: | - sudo -g lxd integration/run-integration-tests + integration/run-integration-tests publish: name: Publish