Skip to content

Commit 4a047d2

Browse files
authored
Merge pull request #28 from python-tableformatter/fix_azure_pipeline
Improve Azure macOS testing
2 parents eb9ed02 + 11d1563 commit 4a047d2

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

azure-pipelines.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,14 @@ jobs:
1414
# Run the pipeline with multiple Python versions
1515
strategy:
1616
matrix:
17-
Python34:
18-
python.version: '3.4'
1917
Python35:
2018
python.version: '3.5'
2119
Python36:
2220
python.version: '3.6'
2321
Python37:
2422
python.version: '3.7'
2523
# Increase the maxParallel value to simultaneously run the job for all versions in the matrix (max 10 for free open-source)
26-
maxParallel: 4
24+
maxParallel: 3
2725

2826
steps:
2927
# Set the UsePythonVersion task to reference the matrix variable for its Python version
@@ -34,7 +32,7 @@ jobs:
3432

3533
# Install dependencies - install specific PyPI packages with pip, including tableformatter and its dependencies
3634
- script: |
37-
python -m pip install --upgrade pip
35+
python -m pip install --upgrade pip && pip install --upgrade gnureadline
3836
pip install -e .
3937
displayName: 'Install dependencies'
4038
continueOnError: false
@@ -43,10 +41,10 @@ jobs:
4341
4442
# Test - test with pytest, collect coverage metrics with pytest-cov, and publish these metrics to codecov.io
4543
- script: |
46-
pip install pytest pytest-cov codecov
47-
py.test --cov=tableformatter --junitxml=junit/test-results.xml --cov-report=xml --cov-report=html
48-
codecov
44+
pip install pytest pytest-cov codecov numpy pandas
45+
py.test --cov=tableformatter --junitxml=junit/test-results.xml --cov-report=xml --cov-report=html && codecov
4946
displayName: 'Test with pytest'
47+
continueOnError: false
5048
5149
# Publish test results to the Azure DevOps server
5250
- task: PublishTestResults@2

0 commit comments

Comments
 (0)