-
Notifications
You must be signed in to change notification settings - Fork 35
41 lines (37 loc) · 1.1 KB
/
run-tests.yml
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
38
39
40
41
name: Run tests
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
run-tests:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
channel: [latest/edge, latest/edge/strict]
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install python3-setuptools
sudo pip3 install --upgrade pip
sudo pip3 install -U pytest
- name: Running addons tests
run: |
set -x
sudo snap install microk8s --classic --channel=${{ matrix.channel }}
sudo microk8s status --wait-ready --timeout 600
sudo microk8s addons repo remove core
sudo microk8s addons repo add core .
export UNDER_TIME_PRESSURE="True"
if [[ "${{ matrix.channel }}" == "latest/edge/strict" ]]
then
export STRICT="yes"
fi
export SKIP_PROMETHEUS="False"
sudo -E pytest -s -ra ./tests/test-addons.py
sudo snap remove microk8s --purge