8000 Update ci-pr-pipeline.yml for Azure Pipelines · TheCompuGuru/botbuilder-python@fc05153 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fc05153

Browse files
committed
Update ci-pr-pipeline.yml for Azure Pipelines
Run pytest using Python 3.6, 3.7, and 3.8
1 parent 53c7ab8 commit fc05153

File tree

1 file changed

+38
-4
lines changed

1 file changed

+38
-4
lines changed

ci-pr-pipeline.yml

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ variables:
66
COVERALLS_GIT_COMMIT: $(Build.SourceVersion)
77
COVERALLS_SERVICE_JOB_ID: $(Build.BuildId)
88
COVERALLS_SERVICE_NAME: python-ci
9-
python.version: 3.7.6
9+
python.36: 3.6.9
10+
python.37: 3.7.6
11+
pythin.38: 3.8.1
12+
python.version: $(python.37)
1013

1114

1215
jobs:
@@ -53,8 +56,39 @@ jobs:
5356
pip install pytest
5457
pip install pytest-cov
5558
pip install coveralls
56-
pytest --junitxml=junit/test-results.xml --cov-config=.coveragerc --cov --cov-report=xml --cov-report=html
57-
displayName: Pytest
59+
displayName: PyTest
60+
61+
- task: UsePythonVersion@0
62+
displayName: 'Use Python $(python.36)'
63+
inputs:
64+
versionSpec: '$(python.36)'
65+
66+
- script:
67+
pytest --junitxml=junit/test-results.36.xml --cov-config=.coveragerc --cov --cov-report=xml --cov-report=html
68+
displayName: Pytest.36
69+
70+
- task: UsePythonVersion@0
71+
displayName: 'Use Python $(python.37)'
72+
inputs:
73+
versionSpec: '$(python.37)'
74+
75+
- script:
76+
pytest --junitxml=junit/test-results.37.xml --cov-config=.coveragerc --cov --cov-report=xml --cov-report=html
77+
displayName: Pytest.37
78+
79+
- task: UsePythonVersion@0
80+
displayName: 'Use Python $(python.38)'
81+
inputs:
82+
versionSpec: '$(python.38)'
83+
84+
- script:
85+
pytest --junitxml=junit/test-results.38.xml --cov-config=.coveragerc --cov --cov-report=xml --cov-report=html
86+
displayName: Pytest.38
87+
88+
- task: UsePythonVersion@0
89+
displayName: 'Use Python $(python.version)'
90+
inputs:
91+
versionSpec: '$(python.version)'
5892

5993
- script: 'black --check libraries'
6094
displayName: 'Check Black compliant'
@@ -65,7 +99,7 @@ jobs:
6599
- task: PublishTestResults@2
66100
displayName: 'Publish Test Results **/test-results.xml'
67101
inputs:
68-
testResultsFiles: '**/test-results.xml'
102+
testResultsFiles: '**/test-results*.xml'
69103
testRunTitle: 'Python $(python.version)'
70104

71105
- script: 'COVERALLS_REPO_TOKEN=$(COVERALLS_TOKEN) coveralls'

0 commit comments

Comments
 (0)
0