Skip to content

Commit 11e3e81

Browse files
committed
Move integration testing to Jenkins
1 parent 8c3d9b8 commit 11e3e81

1 file changed

Lines changed: 3 additions & 26 deletions

File tree

.github/workflows/tox.yaml

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,17 @@
1-
name: Run tests with Tox
1+
name: Unit Tests
22

33
on: [push, pull_request]
44

55
jobs:
6-
build:
7-
6+
unit-tests:
87
runs-on: ubuntu-latest
9-
strategy:
10-
matrix:
11-
python: [3.6, 3.7, 3.8]
12-
juju: [stable, edge]
13-
148
steps:
159
- uses: actions/checkout@v2
1610
- name: Setup Python
1711
uses: actions/setup-python@v1
1812
with:
19-
python-version: ${{ matrix.python }}
13+
python-version: 3.8
2014
- name: Install Tox and any other packages
2115
run: pip install tox
2216
- name: Run Lint and Unit Tests
2317
run: tox -e lint,py3
24-
- name: Install Snaps
25-
run: |
26-
sudo snap install lxd
27-
sudo snap install juju --classic --channel ${{ matrix.juju }}
28-
sudo snap install juju-wait --classic
29-
- name: Configure LXD
30-
run: |
31-
sudo lxd waitready --timeout 30
32-
sudo chmod 666 /var/snap/lxd/common/lxd/unix.socket
33-
lxd init --auto --network-address='[::]' --network-port=8443 --storage-backend=dir
34-
lxc network set lxdbr0 ipv6.address none
35-
- name: Bootstrap Juju Controller
36-
run: juju bootstrap localhost test --config 'identity-url=https://api.staging.jujucharms.com/identity' --config 'allow-model-access=true' --config 'test-mode=true'
37-
- name: Run Integration Tests
38-
run: tox -e integration,serial
39-
env:
40-
TEST_AGENTS: '{"agents":[{"url":"https://api.staging.jujucharms.com/identity","username":"libjuju-ci@yellow"}],"key":{"private":"88OOCxIHQNguRG7zFg2y2Hx5Ob0SeVKKBRnjyehverc=","public":"fDn20+5FGyN2hYO7z0rFUyoHGUnfrleslUNtoYsjNSs="}}'

0 commit comments

Comments
 (0)