Skip to content

Commit 7828782

Browse files
Update pipeline cache & pytest args; master-> main (#398)
1 parent bbda401 commit 7828782

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.azure-pipelines.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
trigger:
22
branches:
33
include:
4-
- "master"
4+
- "main"
55
- "0.6"
66
paths:
77
exclude:
@@ -25,7 +25,7 @@ pr:
2525
autoCancel: true # new PR commits will cancel current pipeline jobs in favour of latest commit
2626
branches:
2727
include:
28-
- "master"
28+
- "main"
2929
- "0.6"
3030
paths:
3131
exclude:
@@ -77,7 +77,7 @@ steps:
7777
- task: Cache@2
7878
displayName: Use cached Anaconda environment
7979
inputs:
80-
key: 'conda | "$(Agent.OS)" | requirements.yml | requirements.txt'
80+
key: 'conda | "$(Agent.OS)" | "$(PYTHON_VERSION)" | requirements.yml | requirements.txt'
8181
restoreKeys: |
8282
python | "$(Agent.OS)"
8383
python
@@ -135,16 +135,16 @@ steps:
135135
displayName: Install calliope (Windows)
136136
condition: and(eq(variables['Agent.OS'], 'Windows_NT'), eq(variables.CONDA_CACHE_RESTORED, 'false'))
137137
138-
- bash: | # cbc -quit may be required to make sure that cbc is 'reset' such that its timeout time fits within pyomo's strict limit (see: https://github.com/Pyomo/pyomo/issues/2102)
138+
- bash: | # cbc -quit may be required to make sure that cbc is 'reset' so its timeout time fits within pyomo's strict limit (see: https://github.com/Pyomo/pyomo/issues/2102)
139139
source activate calliope
140140
cbc -quit
141-
py.test -n 2 --junitxml=junit/test-results.xml --cov=calliope --cov-report=term-missing --cov-report=xml -W ignore::FutureWarning
141+
py.test -n 2 --junitxml=junit/test-results.xml --cov=calliope --cov-report=term-missing --cov-report=xml -W ignore::FutureWarning --dist=loadscope
142142
displayName: Run tests (UNIX)
143143
condition: ne( variables['Agent.OS'], 'Windows_NT' )
144144
145145
- script: |
146146
call activate calliope
147-
py.test -n 2 --junitxml=junit/test-results.xml --cov=calliope --cov-report=term-missing --cov-report=xml -W ignore::FutureWarning
147+
py.test -n 2 --junitxml=junit/test-results.xml --cov=calliope --cov-report=term-missing --cov-report=xml -W ignore::FutureWarning --dist=loadscope
148148
displayName: Run tests (Windows)
149149
condition: eq( variables['Agent.OS'], 'Windows_NT' )
150150

0 commit comments

Comments
 (0)