Skip to content

Commit 97978ac

Browse files
author
Teseo Schneider
committed
cross azure
1 parent b49a0bd commit 97978ac

File tree

2 files changed

+44
-43
lines changed

2 files changed

+44
-43
lines changed

azure-pipelines-1.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

azure-pipelines.yml

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,45 @@
1-
- task: WindowsBuild
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+
strategy:
10+
matrix:
11+
linux:
12+
imageName: 'ubuntu-16.04'
13+
mac:
14+
imageName: 'macos-10.13'
15+
windows:
16+
imageName: 'vs2017-win2016'
17+
Python35:
18+
python.version: '3.5'
19+
Python36:
20+
python.version: '3.6'
21+
Python37:
22+
python.version: '3.7'
23+
24+
pool:
25+
vmImage: $(imageName)
26+
27+
steps:
28+
- task: UsePythonVersion@0
229
inputs:
3-
script: |
4-
python --version
5-
python -c \"import struct; print(struct.calcsize('P') * 8)\"
6-
python -m pip install numpy
30+
versionSpec: '$(python.version)'
31+
displayName: 'Use Python $(python.version)'
32+
33+
- script: |
34+
python -m pip install --upgrade pip
35+
python -m pip install numpy
36+
python -m pip install scipy
37+
displayName: 'Install dependencies'
38+
39+
- script: |
40+
python setup.py build install
41+
displayName: 'build'
42+
43+
- script: |
44+
python tests/test_basic.py
45+
displayName: 'testing'

0 commit comments

Comments
 (0)