Skip to content

[Backport 1.28] Fixes minio addon #752

[Backport 1.28] Fixes minio addon

[Backport 1.28] Fixes minio addon #752

Workflow file for this run

name: Run tests
on:
pull_request:
branches: [1.28]
jobs:
run-tests:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
channel: [1.28/edge, 1.28-strict/edge]
steps:
- name: Check out code
uses: actions/checkout@v3
- 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 }}" == "1.28-strict/edge" ]]
then
export STRICT="yes"
fi
export SKIP_PROMETHEUS="False"
sudo -E pytest -s -ra ./tests/test-addons.py
sudo snap remove microk8s --purge