88
99jobs :
1010 coverage :
11- runs-on : ${{ matrix.platform }}
11+ runs-on : ubuntu-latest
1212 strategy :
13- max-parallel : 1
1413 matrix :
15- platform :
16- - ubuntu-latest
1714 python-version : ['3.11']
18-
1915 steps :
20- - uses : actions/checkout@v4
16+ - name : Check out code from GitHub
17+ 2118 - name : Set up Python ${{ matrix.python-version }}
22- uses : actions/setup-python@v5
19+ uses : actions/setup-python@v4
2320 with :
2421 python-version : ${{ matrix.python-version }}
2522 - name : Install dependencies
@@ -28,16 +25,34 @@ jobs:
2825 pip install -r requirements.txt
2926 pip install -r requirements_test.txt
3027 pip install tox
31- pip install codecov
32- - name : Test
28+ - name : Run Coverage
3329 run : |
3430 tox -r -e cov
35- - name : Codecov
36- uses : codecov/codecov-action@v3
31+ - name : Upload coverage
32+ 3733 with :
38- fail_ci_if_error : true # optional (default = false)
39- files : ./coverage.xml
40- flags : unittests # optional
41- name : python-adc-eval
42- token : ${{ secrets.CODECOV_TOKEN }} # required
43- verbose : true # optional (default = false)
34+ name : coverage-${{ matrix.python-version }}
35+ path : coverage.xml
36+ overwrite : true
37+ upload-coverage :
38+ runs-on : ubuntu-latest
39+ strategy :
40+ matrix :
41+ python-version : ['3.11']
42+ needs :
43+ - coverage
44+ timeout-minutes : 10
45+ steps :
46+ - name : Check out code from GitHub
47+ 48+ - name : Download all coverage artifacts
49+ 50+ with :
51+ name : coverage-${{ matrix.python-version }}
52+ path : coverage.xml
53+ - name : Upload coverage to Codecov
54+ 55+ with :
56+ fail_ci_if_error : true
57+ token : ${{ secrets.CODECOV_TOKEN }}
58+ name : python-adc-eval
0 commit comments