From 503223a2770280e0276783aa60bf1a7199f4e280 Mon Sep 17 00:00:00 2001 From: Yuxuan Zhuang Date: Thu, 2 May 2024 23:58:40 -0700 Subject: [PATCH] print env --- .github/workflows/gh-ci.yaml | 9 +++------ azure-pipelines.yml | 7 ++++++- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/gh-ci.yaml b/.github/workflows/gh-ci.yaml index ed53ccb1ae9..39211edb672 100644 --- a/.github/workflows/gh-ci.yaml +++ b/.github/workflows/gh-ci.yaml @@ -27,7 +27,7 @@ jobs: strategy: fail-fast: false matrix: - os: [self-hosted, ] + os: [ubuntu-latest, ] python-version: ["3.10", "3.11", "3.12"] full-deps: [true, ] codecov: [true, ] @@ -66,11 +66,6 @@ jobs: with: os-type: ${{ matrix.os }} - - name: remove_old_micromamba - run: | - rm -rf $HOME/micromamba - rm -rf $HOME/micromamba-bin - - name: setup_micromamba uses: mamba-org/setup-micromamba@v1 with: @@ -126,6 +121,8 @@ jobs: PYTEST_FLAGS="${PYTEST_FLAGS} --cov-config=.coveragerc --cov=MDAnalysis --cov-report=xml" fi echo $PYTEST_FLAGS + + python -c "import os; print(os.environ)" pytest -n auto --timeout=200 testsuite/MDAnalysisTests $PYTEST_FLAGS - name: run_asv diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 81f38fdeba1..ba7cb7a6208 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -131,7 +131,12 @@ jobs: $env:OPENBLAS_NUM_THREADS=1 $env:GOTO_NUM_THREADS=1 $env:OMP_NUM_THREADS=1 - pytest MDAnalysisTests --disable-pytest-warnings -n auto --timeout=200 -rsx --cov=MDAnalysis + $env:MKL_NUM_THREADS=1 + + # print os.environ to check that the env vars are set + python -c "import os; print(os.environ)" + + pytest MDAnalysisTests --disable-pytest-warnings -n 1 --timeout=200 -rsx --cov=MDAnalysis displayName: 'Run MDAnalysis Test Suite' - script: | curl -s https://codecov.io/bash | bash