Skip to content

Commit 280f488

Browse files
committed
listing the folder where the .coverage is supposed to be
1 parent 6f0fe48 commit 280f488

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ jobs:
4242
(matrix.python-version == '3.13' || matrix.python-version == '3.14')}}
4343
run: |
4444
pytest --disable-warnings -p no:warnings test --cov=aspired --cov-report=xml --cov-report=term --cov-config=setup.cfg --cov-branch
45+
# Check if .coverage file exists before copying
46+
if [ -f .coverage ]; then
47+
cp .coverage .coverage.${{ matrix.os }}.${{ matrix.python-version }}
48+
else
49+
echo "Warning: .coverage file not found in $(pwd)"
50+
ls -la
51+
fi
4552
cp .coverage .coverage.${{ matrix.os }}.${{ matrix.python-version }}
4653
- name: Upload coverage data
4754
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)