Skip to content

Commit 255014f

Browse files
committed
build: Write coverage files to the "coverage" subdirectory.
Coverage writes coverage reports to ".coverage" by default. The GitHub action "upload-artifact" no longer includes hidden files by default. This patch changes the coverage file name to a non-hidden file path.
1 parent 4137723 commit 255014f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
if: "!endsWith(matrix.os, 'windows')"
8989
with:
9090
name: coverage-python-${{ matrix.python-version }}
91-
path: .coverage.*
91+
path: coverage/coverage.*
9292
if-no-files-found: error
9393

9494
check:
@@ -112,7 +112,7 @@ jobs:
112112
- name: Download coverage data for all test runs
113113
uses: actions/download-artifact@v4
114114
with:
115-
pattern: coverage-*
115+
pattern: coverage/*
116116
merge-multiple: true
117117
- name: Combine coverage data and create report
118118
run: |

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ pip-delete-this-directory.txt
3737
# Unit test / coverage reports
3838
htmlcov/
3939
.tox/
40-
.coverage
41-
.coverage.*
40+
coverage/
4241
.pytest_cache
4342
nosetests.xml
4443
coverage.xml

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ clean-pyc: ## remove Python file artifacts
1717

1818
clean-test: ## remove test and coverage artifacts
1919
rm -fr .tox/
20-
rm -f .coverage
20+
rm -fr coverage/
2121
rm -fr htmlcov/
2222

2323
test:

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ pytest11 =
5858
[coverage:run]
5959
source = pytest_asyncio
6060
branch = true
61+
data_file = coverage/coverage
6162
omit = */_version.py
6263
parallel = true
6364

0 commit comments

Comments
 (0)