Skip to content

Commit

Permalink
github: Add integration testing
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Jul 13, 2023
1 parent 26b3290 commit 4c9c80c
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ concurrency:

jobs:
lint:
name: Lint
runs-on: ubuntu-22.04
steps:
- name: Repository checkout
Expand All @@ -32,7 +33,8 @@ jobs:
run: |
tox -e check
coverage:
tests:
name: Tests
strategy:
matrix:
python-version: ["3.8", "3.10", "3.11"]
Expand All @@ -49,14 +51,29 @@ jobs:

- 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: Test coverage
- name: Coverage
run: |
tox -e coverage
codecov
- name: Integration
run: |
sudo -g lxd integration/run-integration-tests
publish:
name: Publish
runs-on: ubuntu-22.04

permissions:
Expand Down

0 comments on commit 4c9c80c

Please sign in to comment.