File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -244,6 +244,7 @@ jobs:
244244 make test-doc;
245245 mkdir -p doc/_build/test-results/test-doc;
246246 cp junit-results.xml doc/_build/test-results/test-doc/junit.xml;
247+ cp coverage.xml doc/_build/test-results/test-doc/coverage.xml;
247248 fi;
248249 # Build docs
249250 - run :
@@ -288,6 +289,15 @@ jobs:
288289 - store_artifacts :
289290 path : doc/_build/test-results
290291 destination : test-results
292+ # Upload test results to Codecov
293+ - run :
294+ name : Upload test results to Codecov
295+ environment :
296+ CODECOV_TOKEN : fb4c4a94-72d7-4743-bb08-af25b623a29a
297+ command : |
298+ if [[ -f doc/_build/test-results/test-doc/coverage.xml ]]; then
299+ bash <(curl -s https://codecov.io/bash) -f doc/_build/test-results/test-doc/coverage.xml
300+ fi
291301 # Save the SG RST
292302 - store_artifacts :
293303 path : doc/auto_examples.zip
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ test-no-testing-data: in
4141 $(PYTESTS ) mne
4242
4343test-doc : sample_data testing_data
44- $(PYTESTS ) --doctest-modules --doctest-ignore-import-errors --doctest-glob=' *.rst' ./doc/ --ignore=./doc/auto_examples --ignore=./doc/auto_tutorials --ignore=./doc/_build --ignore=./doc/conf.py --ignore=doc/sphinxext --fulltrace
44+ $(PYTESTS ) --tb=short --cov=mne --cov-report=xml --cov-branch -- doctest-modules --doctest-ignore-import-errors --doctest-glob=' *.rst' ./doc/ --ignore=./doc/auto_examples --ignore=./doc/auto_tutorials --ignore=./doc/_build --ignore=./doc/conf.py --ignore=doc/sphinxext --fulltrace
4545
4646pre-commit :
4747 @pre-commit run -a --show-diff-on-failure
Original file line number Diff line number Diff line change 1+ Add test analytics functionality to track and analyze test performance, by :newcontrib: `Katia Al-Amir `.
Original file line number Diff line number Diff line change 156156.. _Jussi Nurminen : https ://github . com /jjnurminen
157157.. _Kaisu Lankinen : http ://bishoplab . berkeley . edu /Kaisu . html
158158.. _Katarina Slama : https ://github . com /katarinaslama
159+ .. _Katia Al -Amir : https ://github . com /katia -sentry
159160.. _Keith Doelling : https ://github . com /kdoelling1919
160161.. _Kostiantyn Maksymenko : https ://github . com /makkostya
161162.. _Kristijan Armeni : https ://github . com /kristijanarmeni
You can’t perform that action at this time.
0 commit comments