Skip to content

Commit 74e469c

Browse files
authored
Fix MacOS livetests (#390)
* add in changes in client pipelines * keep only macos and linux runs for this run * renable all tests * fix indent * remove dependency * remove another dependency * enable all tests
1 parent 9a6dfd4 commit 74e469c

1 file changed

Lines changed: 8 additions & 18 deletions

File tree

.azure-pipelines/client.test.live.yml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -184,28 +184,18 @@ jobs:
184184
- script: sudo xcode-select --switch /Applications/Xcode_13.1.app
185185
displayName: 'Select Xcode 13.1'
186186

187-
- script: source ./install_python_osx.sh
188-
displayName: 'Install Official Python'
189-
190-
- script: |
191-
echo "Prepending PATH environment variable with directory: /usr/local/bin"
192-
echo "##vso[task.prependpath]/usr/local/bin"
193-
echo "$(PythonVersion)"
194-
export PYTHON_SHORT_VER=`echo $(PythonVersion) | cut -d . -f 1,2`
195-
echo "Prepending PATH environment variable with directory: $HOME/Library/Python/$PYTHON_SHORT_VER/bin"
196-
echo "##vso[task.prependpath]$HOME/Library/Python/$PYTHON_SHORT_VER/bin"
197-
displayName: 'Prepare PATH'
187+
- template: /.azure-pipelines/use-python-version.yml
188+
parameters:
189+
versionSpec: '$(PythonVersion)'
198190

199191
- script: |
200-
$(PythonBin) --version
201-
curl -sS $(GetPip) | $(PythonBin) - --user
202192
python -m pip --version
203-
$(PythonBin) -m pip install --user -r dev_requirements.txt
193+
python -m pip install --user -r dev_requirements.txt
204194
displayName: 'Install dependencies'
205195
206196
- bash: |
207197
set -o errexit
208-
$(PythonBin) -m pip install --user cibuildwheel==2.16.2 --force
198+
python -m pip install cibuildwheel==2.16.2 --force
209199
displayName: Install cibuildwheel 2.16.2
210200
211201
- pwsh: |
@@ -227,9 +217,9 @@ jobs:
227217
displayName: 'Check output'
228218

229219
- script: |
230-
$(PythonBin) -m pip install --user --ignore-installed ./dist/*.whl
231-
$(PythonBin) -m pip install --user pytest==6.2.4 --force
232-
$(PythonBin) -m pip install --user pytest-asyncio==0.12.0 --force
220+
python -m pip install --ignore-installed ./dist/*.whl
221+
python -m pip install pytest==6.2.4 --force
222+
python -m pip install pytest-asyncio==0.12.0 --force
233223
pytest tests --doctest-modules --junitxml=junit/test-results-c.xml
234224
pytest samples --doctest-modules --junitxml=junit/test-results-live.xml
235225
displayName: 'Run tests'

0 commit comments

Comments
 (0)