Skip to content

Commit

Permalink
Update pipeline cache & pytest args; master-> main (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
brynpickering authored Jan 18, 2023
1 parent bbda401 commit 7828782
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
trigger:
branches:
include:
- "master"
- "main"
- "0.6"
paths:
exclude:
Expand All @@ -25,7 +25,7 @@ pr:
autoCancel: true # new PR commits will cancel current pipeline jobs in favour of latest commit
branches:
include:
- "master"
- "main"
- "0.6"
paths:
exclude:
Expand Down Expand Up @@ -77,7 +77,7 @@ steps:
- task: Cache@2
displayName: Use cached Anaconda environment
inputs:
key: 'conda | "$(Agent.OS)" | requirements.yml | requirements.txt'
key: 'conda | "$(Agent.OS)" | "$(PYTHON_VERSION)" | requirements.yml | requirements.txt'
restoreKeys: |
python | "$(Agent.OS)"
python
Expand Down Expand Up @@ -135,16 +135,16 @@ steps:
displayName: Install calliope (Windows)
condition: and(eq(variables['Agent.OS'], 'Windows_NT'), eq(variables.CONDA_CACHE_RESTORED, 'false'))
- 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)
- 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)
source activate calliope
cbc -quit
py.test -n 2 --junitxml=junit/test-results.xml --cov=calliope --cov-report=term-missing --cov-report=xml -W ignore::FutureWarning
py.test -n 2 --junitxml=junit/test-results.xml --cov=calliope --cov-report=term-missing --cov-report=xml -W ignore::FutureWarning --dist=loadscope
displayName: Run tests (UNIX)
condition: ne( variables['Agent.OS'], 'Windows_NT' )
- script: |
call activate calliope
py.test -n 2 --junitxml=junit/test-results.xml --cov=calliope --cov-report=term-missing --cov-report=xml -W ignore::FutureWarning
py.test -n 2 --junitxml=junit/test-results.xml --cov=calliope --cov-report=term-missing --cov-report=xml -W ignore::FutureWarning --dist=loadscope
displayName: Run tests (Windows)
condition: eq( variables['Agent.OS'], 'Windows_NT' )
Expand Down

0 comments on commit 7828782

Please sign in to comment.