Skip to content

Commit a9a132c

Browse files
author
Teseo Schneider
committed
better testing?
1 parent 4e54397 commit a9a132c

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

azure-pipelines.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,26 @@ jobs:
3737

3838
- script: |
3939
python -m pip install --upgrade pip
40-
python -m pip install numpy
41-
python -m pip install scipy
40+
pip install numpy
41+
pip install scipy
4242
displayName: 'Install dependencies'
4343
4444
- script: |
45-
python -m pip install . --no-deps -vv
45+
pip install -ve .
4646
displayName: 'build'
4747
48+
- script: env
49+
displayName: 'print env'
50+
4851
- script: |
49-
python tests/test_basic.py
52+
env
53+
pip install pytest
54+
pip install pytest-cov
55+
pytest tests --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
5056
displayName: 'testing'
57+
58+
- task: PublishTestResults@2
59+
condition: succeededOrFailed()
60+
inputs:
61+
testResultsFiles: '**/test-*.xml'
62+
testRunTitle: 'Publish test results for Python $(python.version)'

0 commit comments

Comments
 (0)