Skip to content

[Backport 1.26] Pin the sosivio version to 1.5.3 (#158) #408

[Backport 1.26] Pin the sosivio version to 1.5.3 (#158)

[Backport 1.26] Pin the sosivio version to 1.5.3 (#158) #408

Workflow file for this run

name: Run tests
on:
push:
branches: [1.26]
pull_request:
branches: [1.26]
jobs:
run-tests:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y python3-setuptools nfs-common
sudo pip3 install --upgrade pip
sudo pip3 install -U pytest sh
- name: Running addons tests
run: |
set -x
sudo snap install microk8s --classic --channel=1.26/edge
sudo microk8s status --wait-ready --timeout 600
if sudo microk8s addons repo list | grep community
then
sudo microk8s addons repo remove community
fi
sudo microk8s addons repo add community .
export UNDER_TIME_PRESSURE="True"
export SKIP_PROMETHEUS="False"
sudo -E pytest -s -ra ./tests/test-addons.py
sudo snap remove microk8s --purge
- name: Running addons tests on strict
run: |
set -x
sudo snap install microk8s --channel=1.26-strict/edge
sudo microk8s status --wait-ready --timeout 600
if sudo microk8s addons repo list | grep community
then
sudo microk8s addons repo remove community
fi
sudo microk8s addons repo add community .
export UNDER_TIME_PRESSURE="True"
export SKIP_PROMETHEUS="False"
export STRICT="yes"
sudo -E pytest -s -ra ./tests/test-addons.py
sudo snap remove microk8s --purge