-
Notifications
You must be signed in to change notification settings - Fork 100
85 lines (80 loc) · 2.22 KB
/
coverage-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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: coverage-tests
on:
pull_request:
push:
schedule:
- cron: "0 7 * * *" # Run once daily
permissions:
contents: read # to fetch code (actions/checkout)
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
CODECOV_TOKEN: afe9868c-2c27-4853-89fa-4bc5d3d2b255
jobs:
cpp-python-coverage:
name: Run Python and C++ tests with test coverage (Linux)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- uses: mamba-org/provision-with-micromamba@v14
with:
cache-downloads: true
cache-env: true
environment-name: dev
environment-file: ops/conda_env/dev.yml
- name: Display Conda env
shell: bash -l {0}
run: |
conda info
conda list
- name: Run tests with test coverage computation
shell: bash -l {0}
run: |
bash ops/cpp-python-coverage.sh
win-python-coverage:
name: Run Python and C++ tests with test coverage (Windows)
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- uses: mamba-org/provision-with-micromamba@v14
with:
cache-downloads: true
cache-env: true
environment-name: dev
environment-file: ops/conda_env/dev.yml
- name: Display Conda env
shell: cmd /C CALL {0}
run: |
micromamba info
micromamba list
- name: Run tests with test coverage computation
shell: cmd /C CALL {0}
run: |
call ops/win-python-coverage.bat
macos-python-coverage:
name: Run Python and C++ tests with test coverage (MacOS)
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- uses: mamba-org/provision-with-micromamba@v14
with:
cache-downloads: true
cache-env: true
environment-name: dev
environment-file: ops/conda_env/dev.yml
- name: Display Conda env
shell: bash -l {0}
run: |
conda info
conda list
- name: Run tests with test coverage computation
shell: bash -l {0}
run: |
bash ops/macos-python-coverage.sh