-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.07 KB
/
coverage.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
name: coverage
on: push
jobs:
coverage:
name: Collect and upload coverage
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
py:
- "3.13.0"
os:
- ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
submodules: "recursive"
- name: Setup python for test ${{ matrix.py }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.py }}
- name: Create testdump directory
run: mkdir tests/src_core_lego/test_vocab_files/testdump
- name: Install project deps
run: python3 -m pip install -r requirements-dev.txt
- name: Run coverage for python
run: |
coverage run tests/run_all_tests.py
mkdir -p reports/coverage
coverage xml -o reports/coverage/coverage.xml
- name: Upload results to Codecov
uses: codecov/[email protected]
with:
files: ./reports/coverage/coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}