forked from brightway-lca/bw_recipe_2016
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
90 lines (75 loc) · 2.66 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
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 bw2
displayName: Create Anaconda environment
- bash: |
source activate bw2
conda install --yes --quiet -c defaults -c conda-forge -c cmutel -c haasad --name bw2 python=$PYTHON_VERSION numpy bw_processing pandas scipy psutil pypardiso pytest peewee brightway2 pytest pytest-azurepipelines pytest-cov
displayName: Install Anaconda packages
- bash: |
source activate bw2
pytest --cov=bw2calc --cov-report=xml --cov-report=html
displayName: pytest
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'
- 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 bw2
displayName: Create Anaconda environment
- bash: |
source activate bw2
conda install --yes --quiet -c defaults -c conda-forge -c cmutel -c haasad --name bw2 python=$PYTHON_VERSION numpy bw_processing pandas scipy psutil pypardiso pytest peewee brightway2 pytest pytest-azurepipelines pytest-cov
displayName: Install Anaconda packages
- bash: |
source activate bw2
pytest --cov=bw2calc --cov-report=xml --cov-report=html
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 bw2
displayName: Create Anaconda environment
- script: |
call activate bw2
conda install --yes --quiet -c defaults -c conda-forge -c cmutel -c haasad --name bw2 python=%PYTHON_VERSION% numpy bw_processing pandas scipy psutil pypardiso pytest peewee brightway2 pytest pytest-azurepipelines pytest-cov
displayName: Install Anaconda packages
- script: |
call activate bw2
pytest --cov=bw2calc --cov-report=xml --cov-report=html
displayName: pytest