Skip to content

Commit df9ee64

Browse files
author
Victoria Hall
committed
virtual environment
1 parent 2f8e71c commit df9ee64

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

eng/templates/jobs/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ jobs:
2626
displayName: 'Check python version'
2727
- bash: |
2828
python -m pip install -U pip
29-
pip install twine wheel pip-audit
29+
pip install twine wheel
3030
python setup.py sdist bdist_wheel
3131
displayName: 'Build Python SDK for $(PYTHON_VERSION)'
3232
- bash: |
33-
pip uninstall setuptools # This is not packaged with the SDK
33+
python -m venv .venv
34+
.venv/Scripts/Activate.ps1
35+
pip install pip-audit .
3436
pip-audit
3537
displayName: 'Run vulnerability scan'

eng/templates/official/jobs/build-artifacts.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,8 @@ jobs:
2727
python setup.py sdist bdist_wheel
2828
displayName: 'Build Python SDK'
2929
- bash: |
30+
python -m venv .venv
31+
.venv/Scripts/Activate
32+
pip install pip-audit .
3033
pip-audit
3134
displayName: 'Run vulnerability scan'

0 commit comments

Comments
 (0)