-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (40 loc) · 1.17 KB
/
test.yaml
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
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.8]
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: pip install this package
run: |
pip3 install -e .[all]
echo "pip freeze"
pip3 freeze
- name: pip install pytest and mypy
run: |
pip3 install pytest
pip3 install mypy
mypy --version
- name: Run Pytest
run: |
pytest -v tests/unittest/
- name: Run mypy
run: mypy .
- name: Run integration test
run: ./tests/integration_test.sh
- name: Run regression test
run: ./tests/regression_test.py