5252 run : python -m pip install --upgrade pip pytest pytest-cov httpx requests pyyaml
5353
5454 - name : " 🧪 Run unit tests with coverage"
55+ env :
56+ COVERAGE_FILE : coverage-unit.dat
5557 run : >
5658 pytest -q tests/test_mellophone.py tests/test_structures.py
5759 --cov=src/mellophone
6264 uses : actions/upload-artifact@v4
6365 with :
6466 name : coverage-unit-data
65- path : . coverage
67+ path : coverage-unit.dat
6668
6769 integration :
6870 name : " 🐳 Integration | Py3.13 on ubuntu-22.04"
@@ -130,6 +132,8 @@ jobs:
130132 exit 1
131133
132134 - name : " 🧪 Run integration tests with coverage"
135+ env :
136+ COVERAGE_FILE : coverage-integration.dat
133137 run : >
134138 pytest -q tests/test_integration_mellophone.py
135139 --cov=src/mellophone
@@ -139,7 +143,7 @@ jobs:
139143 uses : actions/upload-artifact@v4
140144 with :
141145 name : coverage-integration-data
142- path : . coverage
146+ path : coverage-integration.dat
143147
144148 - name : " 🧹 Stop services"
145149 if : always()
@@ -151,6 +155,9 @@ jobs:
151155 runs-on : ubuntu-22.04
152156
153157 steps :
158+ - name : " 📥 Checkout"
159+ uses : actions/checkout@v4
160+
154161 - name : " 🐍 Set up Python"
155162 uses : actions/setup-python@v5
156163 with :
@@ -173,7 +180,7 @@ jobs:
173180
174181 - name : " 🧮 Combine and build coverage reports"
175182 run : |
176- python -m coverage combine coverage_data/unit/. coverage coverage_data/integration/. coverage
183+ python -m coverage combine coverage_data/unit/coverage-unit.dat coverage_data/integration/coverage-integration.dat
177184 python -m coverage report -m
178185 python -m coverage xml -o coverage.xml
179186 python -m coverage json -o coverage.json
0 commit comments