From 7f59c98839c526be2fbb35789b088821f63bdf34 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Thu, 19 Sep 2019 00:38:21 +0200 Subject: [PATCH] CI: use python -m to make sure we are using the pip/pytest we want --- ci/azure-pipelines-steps.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/azure-pipelines-steps.yml b/ci/azure-pipelines-steps.yml index f8b2a58fe3eb..de426fb84726 100644 --- a/ci/azure-pipelines-steps.yml +++ b/ci/azure-pipelines-steps.yml @@ -63,13 +63,13 @@ steps: - script: | python -m pip install --upgrade pip - pip install -r requirements/testing/travis_all.txt -r requirements/testing/travis36.txt + python -m pip install -r requirements/testing/travis_all.txt -r requirements/testing/travis36.txt displayName: 'Install dependencies with pip' - script: | - pip install -ve . + python -m pip install -ve . displayName: "Install self" env: @@ -80,7 +80,7 @@ steps: - script: | env - pytest --junitxml=junit/test-results.xml -raR --maxfail=50 --timeout=300 --durations=25 --cov-report= --cov=lib -n 2 + python -m pytest --junitxml=junit/test-results.xml -raR --maxfail=50 --timeout=300 --durations=25 --cov-report= --cov=lib -n 2 displayName: 'pytest' env: PYTHONFAULTHANDLER: 1