Skip to content

Commit

Permalink
virtual environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Victoria Hall committed Nov 21, 2024
1 parent 2f8e71c commit df9ee64
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions eng/templates/jobs/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ jobs:
displayName: 'Check python version'
- bash: |
python -m pip install -U pip
pip install twine wheel pip-audit
pip install twine wheel
python setup.py sdist bdist_wheel
displayName: 'Build Python SDK for $(PYTHON_VERSION)'
- bash: |
pip uninstall setuptools # This is not packaged with the SDK
python -m venv .venv
.venv/Scripts/Activate.ps1
pip install pip-audit .
pip-audit
displayName: 'Run vulnerability scan'
3 changes: 3 additions & 0 deletions eng/templates/official/jobs/build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,8 @@ jobs:
python setup.py sdist bdist_wheel
displayName: 'Build Python SDK'
- bash: |
python -m venv .venv
.venv/Scripts/Activate
pip install pip-audit .
pip-audit
displayName: 'Run vulnerability scan'

0 comments on commit df9ee64

Please sign in to comment.