/
azure-steps-windows.yml
43 lines (38 loc) · 1.56 KB
/
azure-steps-windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
steps:
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.5', architecture: x86}}
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.5', architecture: x64}}
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.6', architecture: x86}}
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.6', architecture: x64}}
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.7', architecture: x86}}
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.7', architecture: x64}}
- bash: |
python -m pip install --upgrade pip
pip install cibuildwheel==0.11.1
export CIBW_TEST_COMMAND="pip install -r requirements/tests.txt && pytest"
export CIBW_BUILD=cp3?-* CIBW_SKIP=cp34-*
cibuildwheel --output-dir wheelhouse .
- task: PublishBuildArtifacts@1
inputs: {pathtoPublish: 'wheelhouse'}
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
displayName: Add conda to PATH
- script: |
conda init
REM https://github.com/microsoft/azure-pipelines-tasks/issues/11016
REM call activate base
conda config --set always_yes True
REM https://github.com/conda/conda/issues/8865
REM conda update -n base conda
conda env update -n uarray -f .conda/environment$(python_version).yml
displayName: Create environment.
- script: |
call activate uarray
pip install -e . --no-deps
displayName: Install package
- script: |
call activate uarray
pytest
displayName: Run tests
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: "$(System.DefaultWorkingDirectory)/**/coverage.xml"