Skip to content

Commit

Permalink
Revert "Resolve Pip Related Errors (Azure#12157)"
Browse files Browse the repository at this point in the history
This reverts commit c5ca969.
  • Loading branch information
scbedd committed Jun 23, 2020
1 parent 17d39be commit 1beaa32
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion eng/ci_tools.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# requirements leveraged by ci tools
setuptools==44.1.0; python_version == '2.7'
setuptools==45.1.0; python_version >= '3.5'
virtualenv==20.0.24
wheel==0.34.2
Jinja2==2.11.1
packaging==20.4
Expand Down Expand Up @@ -33,3 +32,4 @@ pytest-cov==2.8.1
./tools/azure-sdk-tools



32 changes: 16 additions & 16 deletions eng/pipelines/templates/steps/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,27 @@ steps:
- template: /eng/common/pipelines/templates/steps/verify-agent-os.yml

- script: |
python -m pip install -r eng/ci_tools.txt
mkdir $(Build.SourcesDirectory)/env
python -m virtualenv $(Build.SourcesDirectory)/env
python -m pip install pip == 20.1
pip install -r eng/ci_tools.txt
pip --version
displayName: 'Prep Environment'
- ${{ parameters.BeforeTestSteps }}

- pwsh: |
$env:Path = "$(Build.SourcesDirectory)/env;" + $env:Path
python -m pip install pip==20.1
python -m pip install -r eng/ci_tools.txt
python -m pip --version
$env:PYTHON_HOME = ""
$env:VIRTUAL_ENV = "$(Build.SourcesDirectory)/env"
Write-Host 'python ./scripts/devops_tasks/setup_execute_tests.py "${{ parameters.BuildTargetingString }}" ${{ parameters.AdditionalTestArgs }} ${{ parameters.CoverageArg }} --mark_arg="${{ parameters.TestMarkArgument }}" --service="${{ parameters.ServiceDirectory }}" --toxenv="${{ parameters.ToxTestEnv }}" --injected-packages="${{ parameters.InjectedPackages }}" ${{ parameters.ToxEnvParallel }}"'
python ./scripts/devops_tasks/setup_execute_tests.py "${{ parameters.BuildTargetingString }}" ${{ parameters.AdditionalTestArgs }} ${{ parameters.CoverageArg }} --mark_arg="${{ parameters.TestMarkArgument }}" --service="${{ parameters.ServiceDirectory }}" --toxenv="${{ parameters.ToxTestEnv }}" --injected-packages="${{ parameters.InjectedPackages }}" ${{ parameters.ToxEnvParallel }}
env: ${{ parameters.EnvVars }}
- task: PythonScript@0
displayName: 'Run Tests'
inputs:
scriptPath: 'scripts/devops_tasks/setup_execute_tests.py'
arguments: >-
"${{ parameters.BuildTargetingString }}"
${{ parameters.AdditionalTestArgs }}
${{ parameters.CoverageArg }}
--mark_arg="${{ parameters.TestMarkArgument }}"
--service="${{ parameters.ServiceDirectory }}"
--toxenv="${{ parameters.ToxTestEnv }}"
--injected-packages="${{ parameters.InjectedPackages }}"
${{ parameters.ToxEnvParallel }}
env: ${{ parameters.EnvVars }}

- ${{ parameters.AfterTestSteps }}

Expand Down

0 comments on commit 1beaa32

Please sign in to comment.