Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Fix macOS unit test pipeline (#3098)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzhe-lz authored Nov 19, 2020
1 parent a3d22ae commit 291bbbb
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions pipelines/fast-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,16 @@ jobs:
# This platform runs TypeScript unit test first.

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: 3.8
displayName: Configure Python

- script: |
set -e
export PYTHON38_BIN_DIR=/usr/local/Cellar/python@3.8/`ls /usr/local/Cellar/python@3.8`/bin
echo "##vso[task.setvariable variable=PATH]${PYTHON38_BIN_DIR}:${HOME}/Library/Python/3.8/bin:${PATH}"
python3 -m pip install -U --upgrade pip setuptools
python3 -m pip install -U pytest coverage
echo "##vso[task.setvariable variable=PATH]${PATH}:${HOME}/.local/bin"
python -m pip install -U --upgrade pip setuptools wheel
python -m pip install -U pytest coverage
displayName: 'Install Python tools'
- script: |
Expand All @@ -145,10 +149,9 @@ jobs:
- script: |
set -e
cd ts/nni_manager
yarn test
cd ../nasui
CI=true yarn test
export CI=true
(cd ts/nni_manager && yarn test)
(cd ts/nasui && yarn test)
displayName: 'TypeScript unit test'
- script: |
Expand Down

0 comments on commit 291bbbb

Please sign in to comment.