Skip to content

Commit

Permalink
Merge pull request #592 from simondeziel/setup-lxd
Browse files Browse the repository at this point in the history
github: use canonical/setup-lxd action to setup LXD
  • Loading branch information
simondeziel authored Jul 5, 2024
2 parents 46b58e6 + d95696e commit 8cdadd4
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ jobs:
strategy:
matrix:
python-version: ["3.8", "3.10", "3.11", "3.12"]
track: ["latest/edge", "5.21/edge", "5.0/edge"]
os: ["24.04"]

runs-on: ubuntu-22.04
runs-on: ubuntu-${{ matrix.os }}
steps:
- name: Repository checkout
uses: actions/checkout@v4
Expand All @@ -49,18 +51,14 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Setup LXD
uses: canonical/setup-lxd@main
with:
channel: ${{ matrix.track }}

- 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 +68,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 8cdadd4

Please sign in to comment.