File tree Expand file tree Collapse file tree 3 files changed +97
-89
lines changed Expand file tree Collapse file tree 3 files changed +97
-89
lines changed Original file line number Diff line number Diff line change @@ -27,15 +27,22 @@ jobs:
27
27
runs-on : ubuntu-latest
28
28
steps :
29
29
- uses : actions/checkout@v4.1.1
30
- - name : Install poetry
31
- run : python3 -m pip install --upgrade pip && python3 -m pip install poetry
30
+ - name : Install and configure Poetry
31
+ uses : snok/install-poetry@v1
32
+ with :
33
+ virtualenvs-create : true
34
+ virtualenvs-in-project : true
32
35
- uses : actions/setup-python@v5.0.0
33
36
with :
34
37
python-version : ' 3.10'
35
38
cache : ' poetry'
36
39
- name : Install dependencies and check code
37
40
run : |
38
41
poetry env use '3.10'
39
- source $(poetry env info --path) /bin/activate
42
+ source .venv /bin/activate
40
43
poetry install --with test --all-extras
41
44
pre-commit run --all-files
45
+ - name : pip-audit (gh-action-pip-audit)
46
+ uses : pypa/gh-action-pip-audit@v1.0.8
47
+ with :
48
+ virtual-environment : .venv/
You can’t perform that action at this time.
0 commit comments