-
Notifications
You must be signed in to change notification settings - Fork 44
48 lines (46 loc) · 1.23 KB
/
tests.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
name: Tests
on:
push:
branches:
- "master"
- "stable"
pull_request:
branches:
- "master"
- "stable"
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
env:
PGPORT: "5433"
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Check environment variables
run: |
/bin/bash scripts/check_vars.sh
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Check init.py
run: |
/bin/bash scripts/check_init_py.sh
- name: Install dependencies
run: |
python -m pip install --upgrade pip poetry importlib-resources==1.5.0
poetry export --with dev -f requirements.txt --output requirements.txt
pip install -r requirements.txt
- name: Validate Grafana dashboard
run: |
python3 scripts/validate_dashboards.py ./monitoring/grafana/dashboards/
- name: Run tests
run: |
/bin/bash run_tests.sh
- name: Run codecov
uses: codecov/[email protected]