Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/CI-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ jobs:
with:
auto-update-conda: true
python-version: ${{ matrix.pythonVersion }}
- if: ${{ matrix.operatingSystem == 'macos-latest' }}
name: Use Homebrew to install libomp on MacOS
- name: Install numpy
shell: bash -l {0}
run: |
brew install libomp
conda install --yes --quiet numpy==1.19.5 -c conda-forge
- if: ${{ matrix.operatingSystem != 'macos-latest' }}
name: Install pytorch on non-MacOS
shell: bash -l {0}
Expand Down
8 changes: 2 additions & 6 deletions devops/templates/create-env-step-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,19 @@ parameters:
default: interpret_conda_env

steps:
- bash: brew install libomp
displayName: Use Homebrew to install libomp on MacOS
condition: eq(variables['Agent.OS'], 'Darwin')

- bash: conda create --yes --quiet --name ${{parameters.condaEnv}} python=${{parameters.pythonVersion}}
displayName: Create Anaconda environment

- bash: |
source activate ${{parameters.condaEnv}}
conda install --yes --quiet --name ${{parameters.condaEnv}} numpy==1.20.3
conda install --yes --quiet --name ${{parameters.condaEnv}} numpy==1.19.5 -c conda-forge
conda install --yes --quiet --name ${{parameters.condaEnv}} pytorch torchvision captum cpuonly -c pytorch
displayName: Install Anaconda packages
condition: ne(variables['Agent.OS'], 'Darwin')

- bash: |
source activate ${{parameters.condaEnv}}
conda install --yes --quiet --name ${{parameters.condaEnv}} numpy==1.20.3
conda install --yes --quiet --name ${{parameters.condaEnv}} numpy==1.19.5 -c conda-forge
conda install --yes --quiet --name ${{parameters.condaEnv}} pytorch torchvision captum -c pytorch
displayName: Install Anaconda packages on MacOS, which should not include cpuonly according to official docs
condition: eq(variables['Agent.OS'], 'Darwin')
Expand Down