Skip to content

Commit 48d84f8

Browse files
committed
Fix install deps, rename display names, skip -e in requirements
1 parent 8771d61 commit 48d84f8

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.Pipelines/pipeline-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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:

.Pipelines/template-run-tests.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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
@@ -27,7 +28,7 @@ steps:
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'
@@ -36,4 +37,4 @@ steps:
3637
testResultsFormat: 'JUnit'
3738
testResultsFiles: 'test-results/junit.xml'
3839
failTaskOnFailedTests: true
39-
testRunTitle: 'Python $(python.version) pytest'
40+
testRunTitle: 'Python $(python.version)'

0 commit comments

Comments
 (0)