Skip to content

Commit b8628b8

Browse files
author
Todd Leonhardt
committed
Fix azure pipeline so that it can fail during running tests
1 parent eb9ed02 commit b8628b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

azure-pipelines.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
# Install dependencies - install specific PyPI packages with pip, including tableformatter and its dependencies
3636
- script: |
37-
python -m pip install --upgrade pip
37+
python -m pip install --upgrade pip && pip install --upgrade gnureadline
3838
pip install -e .
3939
displayName: 'Install dependencies'
4040
continueOnError: false
@@ -44,9 +44,9 @@ jobs:
4444
# Test - test with pytest, collect coverage metrics with pytest-cov, and publish these metrics to codecov.io
4545
- script: |
4646
pip install pytest pytest-cov codecov
47-
py.test --cov=tableformatter --junitxml=junit/test-results.xml --cov-report=xml --cov-report=html
48-
codecov
47+
py.test --cov=tableformatter --junitxml=junit/test-results.xml --cov-report=xml --cov-report=html && codecov
4948
displayName: 'Test with pytest'
49+
continueOnError: false
5050
5151
# Publish test results to the Azure DevOps server
5252
- task: PublishTestResults@2

0 commit comments

Comments
 (0)