From a49144353d5dd81d203289c2f4266b9d20e953d3 Mon Sep 17 00:00:00 2001 From: Michael Hanke Date: Wed, 27 Sep 2023 20:56:56 +0200 Subject: [PATCH] Simplify? --- .appveyor.yml | 7 ++++--- .coveragerc | 14 ++++++++++---- tools/ci/submit-coverage | 2 +- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index e73b4e7d..9d583706 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -200,12 +200,13 @@ for: export TMPDIR=/crippledfs fi - echo TMPDIR=$TMPDIR + - python -m pip install coverage_enable_subprocess + - pwd + - export COVERAGE_PROCESS_START=$(pwd)/.coveragerc # run tests on installed module, not source tree files - mkdir __testhome__ - cd __testhome__ - - ls -la $PWD/../tools/coverage-bin - - PATH=$PWD/../tools/coverage-bin:$PATH which datalad - - PATH=$PWD/../tools/coverage-bin:$PATH python -m pytest -s -v -m "not (turtle)" --doctest-modules --cov=datalad_ria --cov-report= --pyargs ${DTS} + - python -m pytest -s -v -m "not (turtle)" --doctest-modules --cov=datalad_ria --cov-report= --pyargs ${DTS} # restiore original TMPDIR - export TMPDIR=$PREV_TMPDIR diff --git a/.coveragerc b/.coveragerc index ff39803d..970730ef 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,7 +1,13 @@ -[paths] -source = - datalad_ria/ - */datalad_ria/ +[run] +parallel = True +branch = True +data_file = $TOP/.coverage + +#[paths] +#source = +# datalad_ria/ +# */datalad_ria/ + [report] # show lines missing coverage in output show_missing = True diff --git a/tools/ci/submit-coverage b/tools/ci/submit-coverage index 2dc579fe..59d1cec1 100755 --- a/tools/ci/submit-coverage +++ b/tools/ci/submit-coverage @@ -3,7 +3,7 @@ set -e -u # grab coverage reports from subprocesses, see tools/coverage-bin -python -m coverage combine -a /tmp/.coverage-entrypoints-*; +#python -m coverage combine -a /tmp/.coverage-entrypoints-*; python -m coverage xml curl -Os $CODECOV_BINARY chmod +x codecov