Skip to content

Commit

Permalink
github: use canonical/setup-lxd action to setup LXD
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
  • Loading branch information
simondeziel committed Jul 4, 2024
1 parent 46b58e6 commit 45bb547
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 snap refresh lxd
sudo adduser "$USER" lxd
sudo lxd init --auto
pip install --upgrade pip tox codecov
- name: Coverage
Expand All @@ -70,7 +64,7 @@ jobs:
- name: Integration
run: |
sudo -g lxd integration/run-integration-tests
integration/run-integration-tests
publish:
name: Publish
Expand Down

0 comments on commit 45bb547

Please sign in to comment.