Skip to content

Commit

Permalink
Merge pull request #4 from VectorInstitute/adding-pip-audit
Browse files Browse the repository at this point in the history
Adding pip-audit
  • Loading branch information
amrit110 authored Feb 22, 2024
2 parents f0fc520 + 13daf20 commit c931578
Show file tree
Hide file tree
Showing 3 changed files with 318 additions and 6 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/code_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- name: Install poetry
run: python3 -m pip install --upgrade pip && python3 -m pip install poetry
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- uses: actions/setup-python@v5.0.0
with:
python-version: '3.10'
cache: 'poetry'
- name: Install dependencies and check code
run: |
poetry env use '3.10'
source $(poetry env info --path)/bin/activate
source .venv/bin/activate
poetry install --with test --all-extras
pre-commit run --all-files
- name: pip-audit (gh-action-pip-audit)
uses: pypa/gh-action-pip-audit@v1.0.8
with:
virtual-environment: .venv/
Loading

0 comments on commit c931578

Please sign in to comment.