Update operator. #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run tests | |
on: | |
- push | |
- pull_request | |
jobs: | |
run-tests: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/[email protected] | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install python3-setuptools | |
sudo pip3 install --upgrade pip | |
sudo pip3 install -U pytest sh | |
- name: Running addons tests | |
run: | | |
set -x | |
sudo snap install microk8s --classic --channel=latest/edge | |
sudo microk8s status --wait-ready --timeout 600 | |
sudo microk8s addons repo add testing . | |
sudo pytest -s ./tests/test-addons.py | |
sudo snap remove microk8s --purge |