Skip to content

Commit 5cf4d8d

Browse files
author
Tavian Barnes
authored
Set up CI with Azure Pipelines
[skip ci]
1 parent 0f404df commit 5cf4d8d

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

azure-pipelines.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
- master
8+
9+
pool:
10+
vmImage: 'ubuntu-latest'
11+
strategy:
12+
matrix:
13+
Python37:
14+
python.version: '3.7'
15+
16+
steps:
17+
- task: UsePythonVersion@0
18+
inputs:
19+
versionSpec: '$(python.version)'
20+
displayName: 'Use Python $(python.version)'
21+
22+
- script: |
23+
sudo apt-get -qy install libicu-dev
24+
python -m pip install --upgrade pip
25+
CFLAGS="-std=c++11" pip install -e ./python
26+
displayName: 'Install dependencies'
27+
28+
- script: |
29+
pip install pytest pytest-azurepipelines
30+
pytest
31+
displayName: 'pytest'

0 commit comments

Comments
 (0)