Skip to content

Commit 4ec11ec

Browse files
Set up CI with Azure Pipelines
[skip ci]
1 parent 0e4d14e commit 4ec11ec

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

azure-pipelines.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Python package
2+
# Create and test a Python package on multiple Python versions.
3+
# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more:
4+
# https://docs.microsoft.com/azure/devops/pipelines/languages/python
5+
6+
trigger:
7+
- main
8+
9+
pool:
10+
vmImage: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
Python38:
15+
python.version: '3.8'
16+
Python39:
17+
python.version: '3.9'
18+
Python310:
19+
python.version: '3.10'
20+
Python311:
21+
python.version: '3.11'
22+
23+
steps:
24+
- task: UsePythonVersion@0
25+
inputs:
26+
versionSpec: '$(python.version)'
27+
displayName: 'Use Python $(python.version)'
28+
29+
- script: |
30+
python -m pip install --upgrade pip
31+
pip install -r requirements.txt
32+
displayName: 'Install dependencies'
33+
34+
- script: |
35+
pip install pytest pytest-azurepipelines
36+
pytest
37+
displayName: 'pytest'

0 commit comments

Comments
 (0)