Skip to content

Commit

Permalink
Fix code coverage publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
johannfaouzi committed Mar 5, 2020
1 parent 566d0e4 commit dbf642d
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit dbf642d

Please sign in to comment.