File tree Expand file tree Collapse file tree 1 file changed +34
-5
lines changed
Expand file tree Collapse file tree 1 file changed +34
-5
lines changed Original file line number Diff line number Diff line change 4242 (matrix.python-version == '3.13' || matrix.python-version == '3.14')}}
4343 run : |
4444 coverage run -m pytest --disable-warnings -p no:warnings test
45- coverage xml
45+ mv .coverage .coverage.${{ matrix.os }}.${{ matrix.python-version }}
46+ - name : Upload coverage data
47+ uses : actions/upload-artifact@v4
48+ with :
49+ name : coverage-data
50+ path : .coverage.*
4651 - name : Coveralls
4752 if : startsWith(matrix.os, 'ubuntu') && endsWith(matrix.python-version, '3.14')
4853 uses : coverallsapp/github-action@v2
@@ -92,14 +97,38 @@ jobs:
9297 with :
9398 parallel-finished : true
9499
95- codacy-coverage-reporter :
100+ coverage_combine :
96101 needs : build
97102 runs-on : ubuntu-latest
98- name : codacy-coverage-reporter
103+
99104 steps :
100- - uses : actions/checkout@v2
105+ - uses : actions/checkout@v5
106+
107+ - name : Set up Python
108+ uses : actions/setup-python@v6
109+ with :
110+ python-version : " 3.12"
111+
112+ - name : Install coverage
113+ run : |
114+ python -m pip install --upgrade pip
115+ pip install coverage
116+
117+ - name : Download coverage artifacts
118+ uses : actions/download-artifact@v4
119+ with :
120+ name : coverage-data
121+ path : coverage-data
122+
123+ - name : Combine coverage
124+ run : |
125+ ls -la coverage-data
126+ coverage combine coverage-data
127+ coverage xml
128+ coverage report
129+
101130 - name : Run codacy-coverage-reporter
102131 uses : codacy/codacy-coverage-reporter-action@v1.3.0
103132 with :
104133 api-token : ${{ secrets.CODACY_API_TOKEN }}
105- coverage-reports : coverage.xml
134+ coverage-reports : coverage.xml
You can’t perform that action at this time.
0 commit comments