From dbf642d8b29cce6ac2b3902933486183c2754cf1 Mon Sep 17 00:00:00 2001 From: Johann Faouzi Date: Thu, 5 Mar 2020 12:37:15 +0100 Subject: [PATCH] Fix code coverage publishing --- azure-pipelines.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index abe766f..d5e216e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -87,17 +87,14 @@ jobs: versionSpec: '$(python.version)' displayName: 'Use Python $(python.version)' - - script: | - python -m pip install --upgrade pip - pip install numpy==$(numpy.version) scipy==$(scipy.version) scikit-learn==$(scikit-learn.version) joblib==$(joblib.version) numba==$(numba.version) - pip install . - displayName: 'Install dependencies and package' - - script: | pip install pytest pytest-cov export NUMBA_DISABLE_JIT=1 + mkdir for_test + cd for_test pytest -v --cov=pyts --pyargs pyts - displayName: 'Run test suite' + bash <(curl -s https://codecov.io/bash) + displayName: 'Run test suite and publish results' - script: | bash <(curl -s https://codecov.io/bash) @@ -168,12 +165,11 @@ jobs: - script: | pip install pytest pytest-cov export NUMBA_DISABLE_JIT=1 + mkdir for_test + cd for_test pytest -v --cov=pyts --pyargs pyts - displayName: 'Run test suite' - - - script: | bash <(curl -s https://codecov.io/bash) - displayName: 'Publish code coverage results' + displayName: 'Run test suite and publish results' - job: Windows_JIT pool: