forked from aleksandra-kim/gsa_framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
84 lines (70 loc) · 2.18 KB
/
azure-pipelines.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
jobs:
- job:
displayName: ubuntu-18.04-38
pool:
vmImage: 'ubuntu-18.04'
strategy:
matrix:
Python37:
python.version: '3.7'
Python38:
python.version: '3.8'
steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- bash: conda create --yes --quiet --name ci
displayName: Create Anaconda environment
- bash: |
source activate ci
conda install --yes --quiet -c defaults -c conda-forge --name ci python=$PYTHON_VERSION pytest pytest-azurepipelines pytest-cov <add your conda dependencies here>
displayName: Install Anaconda packages
- bash: |
source activate ci
pytest --cov=<your_library_name>
displayName: pytest
- job:
displayName: macOS-10.14-38
pool:
vmImage: 'macOS-10.14'
strategy:
matrix:
Python38:
python.version: '3.8'
Python37:
python.version: '3.7'
steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- bash: conda create --yes --quiet --name ci
displayName: Create Anaconda environment
- bash: |
source activate ci
conda install --yes --quiet -c defaults -c conda-forge --name ci python=$PYTHON_VERSION pytest pytest-azurepipelines pytest-cov <add your conda dependencies here>
displayName: Install Anaconda packages
- bash: |
source activate ci
pytest --cov=<your_library_name>
displayName: pytest
- job:
displayName: vs2017-win2016-38
pool:
vmImage: 'vs2017-win2016'
strategy:
matrix:
Python38:
python.version: '3.8'
Python37:
python.version: '3.7'
steps:
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
displayName: Add conda to PATH
- script: conda create --yes --quiet --name ci
displayName: Create Anaconda environment
- script: |
call activate ci
conda install --yes --quiet -c defaults -c conda-forge --name ci python=%PYTHON_VERSION% pytest pytest-azurepipelines pytest-cov win32 <add your conda dependencies here>
displayName: Install Anaconda packages
- script: |
call activate ci
pytest --cov=<your_library_name>
displayName: pytest