-
Notifications
You must be signed in to change notification settings - Fork 122
37 lines (28 loc) · 951 Bytes
/
smoke.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: ops Smoke Tests
on:
workflow_dispatch:
schedule:
- cron: '0 7 25 * *'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
# pylibjuju does not currently support Juju 4.x
# The smoke tests do not yet work on Juju 2.9.
juju-channel: ['3/stable']
charmcraft-channel: ['2.x/stable', '3.x/stable']
preset: ['machine', 'microk8s']
steps:
- name: Install concierge
run: sudo snap install --classic concierge
- name: Install Juju and tools
run: sudo concierge prepare --juju-channel=${{ matrix.juju-channel }} --charmcraft-channel=${{ matrix.charmcraft-channel }} -p "${{ matrix.preset }}"
- name: Checkout the repository
uses: actions/checkout@v4
- name: Set up Python 3
uses: actions/setup-python@v5
- name: Install tox
run: pip install tox~=4.2
- name: Run smoke tests
run: tox -e smoke