File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ stages:
7979 condition : succeeded()
8080 jobs :
8181 - job : Test
82- displayName : ' pytest · Python $(python.version) '
82+ displayName : ' Run unit tests '
8383 pool :
8484 vmImage : ubuntu-latest
8585 strategy :
Original file line number Diff line number Diff line change @@ -13,11 +13,12 @@ steps:
1313- task : UsePythonVersion@0
1414 inputs :
1515 versionSpec : ' $(python.version)'
16- displayName : ' Use Python $(python.version) '
16+ displayName : ' Set up Python '
1717
1818- script : |
1919 python -m pip install --upgrade pip
20- pip install -r requirements.txt
20+ pip install -e .
21+ grep -v '^-e' requirements.txt | pip install -r /dev/stdin
2122 displayName : ' Install dependencies'
2223
2324# Use bash: (not script:) so set -o pipefail works — script: uses /bin/sh on Linux
2728 mkdir -p test-results
2829 set -o pipefail
2930 pytest -vv --junitxml=test-results/junit.xml 2>&1 | tee test-results/pytest.log
30- displayName : ' Run pytest '
31+ displayName : ' Run tests '
3132
3233- task : PublishTestResults@2
3334 displayName : ' Publish test results'
3637 testResultsFormat : ' JUnit'
3738 testResultsFiles : ' test-results/junit.xml'
3839 failTaskOnFailedTests : true
39- testRunTitle : ' Python $(python.version) pytest '
40+ testRunTitle : ' Python $(python.version)'
You can’t perform that action at this time.
0 commit comments