Skip to content

Commit 853d7fa

Browse files
committed
build: исправление coverage
1 parent ac4776d commit 853d7fa

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/tests.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ jobs:
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
@@ -62,7 +64,7 @@ jobs:
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

Comments
 (0)