@@ -108,7 +108,7 @@ jobs:
108108 sudo apt-get install clang-7
109109 sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang-7 100
110110 sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-7 100
111- - name : Run pip and prepare codecov
111+ - name : Run pip and prepare coverage
112112 if : matrix.benchmark == false
113113 run : |
114114 python3 -m pip install -r test_requirements.txt
@@ -119,9 +119,15 @@ jobs:
119119 - name : Run benchmarks
120120 if : matrix.benchmark == true
121121 run : python3 benchmark.py --quiet
122- - name : Send coverage data
122+ - name : Combine and summarise coverage
123123 if : matrix.benchmark == false
124- run : codecov --name "${{ matrix.runs-on }}-${{ matrix.name_suffix }}-tests" 1>/dev/null
124+ run : coverage combine && coverage xml
125+ - name : Upload coverage data
126+ uses : codecov/codecov-action@v3
127+ if : matrix.benchmark == false
128+ with :
129+ name : " ${{ matrix.runs-on }}-${{ matrix.name_suffix }}-tests"
130+ gcov : true
125131
126132 linux_lint :
127133 name : " C++ Lint"
@@ -245,7 +251,7 @@ jobs:
245251 uses : actions/setup-go@v2
246252 with :
247253 stable : true
248- - name : Run pip and prepare codecov
254+ - name : Run pip and prepare coverage
249255 if : matrix.benchmark == false
250256 run : |
251257 python3 -m pip install -r test_requirements.txt
@@ -257,6 +263,12 @@ jobs:
257263 - name : Run tests
258264 if : matrix.benchmark == false
259265 run : python3 run_tests.py --msvc ${{ matrix.msvc }} --quiet
266+ - name : Combine and summarise coverage
267+ if : matrix.benchmark == false
268+ run : coverage combine && coverage xml
260269 - name : Upload coverage data
270+ uses : codecov/codecov-action@v3
261271 if : matrix.benchmark == false
262- run : codecov --name ${{ matrix.runs-on }}-${{ matrix.python-arch }} >null
272+ with :
273+ name : " ${{ matrix.runs-on }}-${{ matrix.name_suffix }}-tests"
274+ gcov : true
0 commit comments