diff --git a/.azure-pipelines/steps/create-virtualenv.yml b/.azure-pipelines/steps/create-virtualenv.yml index 04f6adc0..873efdc0 100644 --- a/.azure-pipelines/steps/create-virtualenv.yml +++ b/.azure-pipelines/steps/create-virtualenv.yml @@ -1,3 +1,6 @@ +parameters: + python_version: '' + steps: - script: | @@ -29,10 +32,11 @@ steps: - script: | echo "Python path: $(PY_EXE)" echo "GIT_SSL_CAINFO: $(GIT_SSL_CAINFO)" - echo "PIPENV PYTHON VERSION: $PIPENV_DEFAULT_PYTHON_VERSION" + echo "PIPENV PYTHON VERSION: $(python.version)" + echo "python_version: ${{ parameters.python_version }}" $(PY_EXE) -m pipenv install --deploy --dev --python="$(PY_EXE)" env: - PIPENV_DEFAULT_PYTHON_VERSION: $(python.version) + PIPENV_DEFAULT_PYTHON_VERSION: ${{ parameters.python_version }} PYTHONWARNINGS: 'ignore:DEPRECATION' PIPENV_NOSPIN: '1' displayName: Make Virtualenv diff --git a/.azure-pipelines/steps/run-tests.yml b/.azure-pipelines/steps/run-tests.yml index 63972c48..011cecf2 100644 --- a/.azure-pipelines/steps/run-tests.yml +++ b/.azure-pipelines/steps/run-tests.yml @@ -9,7 +9,7 @@ steps: - template: install-dependencies.yml - script: | - echo '##vso[task.setvariable variable=PIPENV_DEFAULT_PYTHON_VERSION]$(python.version)' + echo '##vso[task.setvariable variable=PIPENV_DEFAULT_PYTHON_VERSION]'$(python.version) env: PYTHON_VERSION: $(python.version)