Skip to content

Commit

Permalink
BLD: Set PYTHONHASHSEED on Azure
Browse files Browse the repository at this point in the history
Set PYTHONHASHSEED on Azure to minimize fails using xdist
  • Loading branch information
bashtage committed May 8, 2019
1 parent 3f453ad commit b48d67b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
trigger:
- master

variables:
MKL_NUM_THREADS: 1
NUMEXPR_NUM_THREADS: 1
OMP_NUM_THREADS: 1
OPENBLAS_NUM_THREADS: 1
PYTHONHASHSEED: 0 # Ensure tests are correctly gathered by xdist

jobs:
- template: tools/ci/azure_template.yml
Expand Down
4 changes: 2 additions & 2 deletions tools/ci/azure_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- ${{ if eq(parameters.name, 'Windows') }}:
# We need to install a C compiler, see
# https://github.com/Microsoft/azure-pipelines-tasks/issues/9674
# TODO(py27): This is only necessary for the py27 build, can be removed
# TODO: This is only necessary for the py27 build, can be removed
# once py27 is dropped
- script: choco install vcpython27
displayName: 'Install compiler'
Expand All @@ -53,7 +53,7 @@ jobs:
- script: |
pytest statsmodels --junitxml=junit/test-results.xml --skip-examples -n 2
displayName: 'Running pytest'
displayName: 'pytest'
- ${{ if eq(parameters.name, 'Linux') }}:
# Only lint on Linux
Expand Down

0 comments on commit b48d67b

Please sign in to comment.