-
Notifications
You must be signed in to change notification settings - Fork 7
56 lines (47 loc) · 1.66 KB
/
integrationtest.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Integrationtest
on:
schedule:
- cron: '0 22 * * 1'
push:
branches: [ main ]
workflow_dispatch:
workflow_call:
jobs:
grafana-api-sdk-test:
runs-on: ubuntu-latest
permissions: read-all
strategy:
matrix:
python-version: [ '3.10' ]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
cache: 'pip'
- name: Install the requirements
run: pip install -r requirements.txt
- name: Execute the integrationtests (http1.1)
run: python3 -m unittest discover tests/integrationtest
env:
GRAFANA_HOST: ${{ secrets.GRAFANA_HOST }}
GRAFANA_TOKEN: ${{ secrets.GRAFANA_TOKEN }}
GRAFANA_DASHBOARD_PATH: ${{ secrets.GRAFANA_DASHBOARD_PATH }}
GRAFANA_DASHBOARD_NAME: ${{ secrets.GRAFANA_DASHBOARD_NAME }}
GRAFANA_USERNAME: ${{ secrets.GRAFANA_USERNAME }}
GRAFANA_PASSWORD: ${{ secrets.GRAFANA_PASSWORD }}
HTTP2: "False"
- name: Wait 20 seconds
run: sleep 20
- name: Execute the integrationtests (http2)
run: python3 -m unittest discover tests/integrationtest
env:
GRAFANA_HOST: ${{ secrets.GRAFANA_HOST }}
GRAFANA_TOKEN: ${{ secrets.GRAFANA_TOKEN }}
GRAFANA_DASHBOARD_PATH: ${{ secrets.GRAFANA_DASHBOARD_PATH }}
GRAFANA_DASHBOARD_NAME: ${{ secrets.GRAFANA_DASHBOARD_NAME }}
GRAFANA_USERNAME: ${{ secrets.GRAFANA_USERNAME }}
GRAFANA_PASSWORD: ${{ secrets.GRAFANA_PASSWORD }}
HTTP2: "True"