-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (43 loc) · 1.32 KB
/
test.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
name: Python Test
on:
push:
branches:
- main # Change this to your branch name if needed
paths-ignore:
- '*.md'
- 'docs/*'
- 'example-config/*'
- '**/*.draft.md'
- 'example-schemas/*'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install locales
run: sudo apt-get install -y locales && sudo locale-gen da_DK.UTF-8
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install dependencies
run: python -m pip install -r requirements.txt
- name: Run default client tests
run: python -m unittest tests/config-default/*.py
env:
API_KEY: ${{ secrets.API_KEY }}
# env:
# CONFIG_DIR: example-config-aarhus
- name: Run teater client tests
run: python -m unittest tests/config-teater/*.py
env:
API_KEY: ${{ secrets.API_KEY }}
CONFIG_DIR: example-config-teater
- name: Run aarhus client tests
run: python -m unittest tests/config-aarhus/*.py
env:
API_KEY: ${{ secrets.API_KEY }}
CONFIG_DIR: example-config-aarhus
- name: Run mypy
run: mypy --config-file pyproject.toml .