forked from brightway-lca/brightway2-io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
99 lines (83 loc) · 2.93 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
pr:
autoCancel: true
branches:
include:
- master
jobs:
- job:
displayName: ubuntu-20.04-conda
pool:
vmImage: 'ubuntu-20.04'
strategy:
matrix:
Python310:
python.version: '3.10'
Python311:
python.version: '3.11'
timeoutInMinutes: 20
steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- bash: |
conda config --set always_yes yes
conda install -q -c conda-forge mamba
mamba create -q --name bw2
displayName: Create Anaconda environment
- bash: |
source activate bw2
conda install --yes -c defaults -c conda-forge -c cmutel -c haasad --name bw2 python=$PYTHON_VERSION numpy scipy requests lxml bw2data">=4.0.dev15" bw2calc">=2.0.dev7" unidecode xlsxwriter tqdm xlrd bw_processing matrix_utils openpyxl bw_migrations mrio_common_metadata pytest pytest-azurepipelines">=1.0" pytest-cov
displayName: Install Anaconda packages
- bash: |
source activate bw2
pytest -vv --color=yes --cov-report html --cov=bw2io
displayName: pytest
- job:
displayName: macOS 11 Big Sur-conda
pool:
vmImage: 'macOS-latest'
strategy:
matrix:
Python311:
python.version: '3.11'
timeoutInMinutes: 20
steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- bash: |
conda config --set always_yes yes
conda install -q -c conda-forge mamba
mamba create -q --name bw2
displayName: Create Anaconda environment
- bash: |
source activate bw2
mamba install --yes -c defaults -c conda-forge -c cmutel --name bw2 python=$PYTHON_VERSION numpy scipy requests lxml bw2data">=4.0.dev15" bw2calc">=2.0.dev7" unidecode xlsxwriter tqdm xlrd bw_processing matrix_utils openpyxl bw_migrations mrio_common_metadata pytest pytest-azurepipelines">=1.0" pytest-cov
displayName: Install Anaconda packages
- bash: |
source activate bw2
pytest --color=yes -vv --runslow
displayName: pytest
- job:
displayName: Windows Server 2022 with Visual Studio 2022-pip
pool:
vmImage: 'windows-latest'
strategy:
matrix:
Python311:
python.version: '3.11'
timeoutInMinutes: 60
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
displayName: Add conda to PATH
- script: conda create --yes --quiet --name bw2
displayName: Create Anaconda environment
- script: |
call activate bw2
conda install --yes -c defaults -c conda-forge -c cmutel --name bw2 python=%PYTHON_VERSION% numpy scipy requests lxml pytest bw2data">=4.0.dev15" bw2calc">=2.0.dev7" unidecode xlrd xlsxwriter tqdm openpyxl bw_processing matrix_utils bw_migrations mrio_common_metadata pytest pytest-azurepipelines">=1.0"
displayName: Install Anaconda packages
- script: |
call activate bw2
pytest -vv
displayName: pytest