-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (34 loc) · 1.05 KB
/
test-prometrix.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
name: Test Prometrix with pytest
on:
push:
workflow_dispatch:
pull_request:
types: [opened, reopened]
jobs:
run_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
# setup a KIND cluster for Prometheus etc
- name: Create k8s Kind Cluster
uses: helm/[email protected]
- name: Output KIND info
run: |
kubectl config get-contexts
# TODO install Kubernetes, Prometheus etc?
# install Prometrix so that we can run tests on it
- name: Install Prometrix
run: |
curl -sSL https://install.python-poetry.org | python3 - --version 1.4.0
poetry config virtualenvs.create false
poetry install --with test
# run the actual tests
- name: Test Prometrix
env:
TEST_CONFIG: ${{ secrets.TEST_CONFIG }}
run: |
python tests/main.py --from-env