Skip to content

Commit 5647caf

Browse files
authored
Merge pull request #265 from nipy/codex/investigate-circleci-pytest-report-issue
MNT: Fix coverage XML path in CircleCI
2 parents 0ae771d + df85a87 commit 5647caf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,21 +136,21 @@ jobs:
136136
name: Run unit tests
137137
no_output_timeout: 2h
138138
command: |
139-
mkdir -p /tmp/tests/{artifacts,summaries}
139+
mkdir -p /tmp/tests/{artifacts,summaries,coverage}
140140
docker run -u $( id -u ) -it --rm \
141141
-w /src/nitransforms -v $PWD:/src/nitransforms \
142142
-v /tmp/data/nitransforms-tests:/data -e TEST_DATA_HOME=/data \
143-
-e COVERAGE_FILE=/tmp/summaries/.pytest.coverage \
143+
-e COVERAGE_FILE=/tmp/coverage/.pytest.coverage \
144144
-v /tmp/fslicense/license.txt:/opt/freesurfer/license.txt:ro \
145145
-v /tmp/tests:/tmp nitransforms:latest \
146146
pytest --junit-xml=/tmp/summaries/pytest.xml \
147-
--cov nitransforms --cov-report xml:/tmp/summaries/unittests.xml \
147+
--cov nitransforms --cov-report xml:/tmp/coverage/unittests.xml \
148148
nitransforms/
149149
- run:
150150
name: Submit unit test coverage
151151
command: |
152152
cd /tmp/src/nitransforms
153-
python3 -m codecov --file /tmp/tests/summaries/unittests.xml \
153+
python3 -m codecov --file /tmp/tests/coverage/unittests.xml \
154154
--flags unittests -e CIRCLE_JOB
155155
- run:
156156
name: Clean up tests directory

0 commit comments

Comments
 (0)