From 9350605453cc8b4b3b6cf44185080c9e354af383 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Sun, 24 Jan 2021 14:00:41 +0000 Subject: [PATCH 1/2] Install matplotlib before test dependencies on Azure --- azure-pipelines.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3c8227b6f26f..13ea33da20f5 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -84,15 +84,15 @@ steps: displayName: 'Install dependencies' - bash: | - python -m pip install --upgrade pip - python -m pip install -r requirements/testing/travis_all.txt -r requirements/testing/travis_extra.txt || + python -m pip install -ve . || [[ "$PYTHON_VERSION" = 'Pre' ]] - displayName: 'Install dependencies with pip' + displayName: "Install self" - bash: | - python -m pip install -ve . || + python -m pip install --upgrade pip + python -m pip install -r requirements/testing/travis_all.txt -r requirements/testing/travis_extra.txt || [[ "$PYTHON_VERSION" = 'Pre' ]] - displayName: "Install self" + displayName: 'Install dependencies with pip' - script: env displayName: 'print env' From 5783ab8cc9b24b4d9ee18e4eef7e655596595542 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Sun, 24 Jan 2021 16:50:01 +0000 Subject: [PATCH 2/2] Allow pre build to fail at installation stage --- azure-pipelines.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 13ea33da20f5..93e3b2a20cab 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -84,14 +84,12 @@ steps: displayName: 'Install dependencies' - bash: | - python -m pip install -ve . || - [[ "$PYTHON_VERSION" = 'Pre' ]] + python -m pip install -ve . displayName: "Install self" - bash: | python -m pip install --upgrade pip - python -m pip install -r requirements/testing/travis_all.txt -r requirements/testing/travis_extra.txt || - [[ "$PYTHON_VERSION" = 'Pre' ]] + python -m pip install -r requirements/testing/travis_all.txt -r requirements/testing/travis_extra.txt displayName: 'Install dependencies with pip' - script: env