forked from CURENT/andes
-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines-win.yml
39 lines (33 loc) 路 1.08 KB
/
azure-pipelines-win.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
# Python package
# Create and test a Python package on multiple Python versions.
# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/python
jobs:
- job: win
pool:
vmImage: windows-latest
timeoutInMinutes: 360
strategy:
matrix:
win_python3.8:
python.version: '3.8'
steps:
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
displayName: Add conda to PATH
- script: conda create --yes --quiet --name andesEnv
displayName: Create Anaconda environment
- script: |
call activate andesEnv
conda install --yes --quiet --name andesEnv python=%PYTHON_VERSION%
displayName: Install Anaconda packages
- script: |
call activate andesEnv
python -m pip install --upgrade pip
pip install pytest pytest-azurepipelines
pip install .[dev,interop]
pytest
displayName: pytest
- script: |
call activate andesEnv
make -C docs html
displayName: 'make documentation'