-
Notifications
You must be signed in to change notification settings - Fork 28
47 lines (39 loc) · 1.03 KB
/
test_python.yml
File metadata and controls
47 lines (39 loc) · 1.03 KB
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
name: Python Testing
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
unit_test:
name: Testing
runs-on: ubuntu-18.04
strategy:
matrix:
python-version: [3.7, 3.8]
steps:
- name: Get aps code
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# don't have enough git-lfs bandwidth
# - name: Set up Git LFS
# run: |
# bash .ci/install_git_lfs.sh && git lfs install && git lfs pull
- name: Install dependencies
run: |
bash .ci/install_test_deps.sh
- name: Run testing cases (cmd)
run: |
bash tests/python/check_cmds.sh
- name: Run testing cases (lib)
run: |
pytest tests/python --cov=. --cov-report=xml
- name: Upload coverage
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true