Skip to content

Commit 8e2efe0

Browse files
authored
Update generate CI workflow for pip-audit (#412)
1 parent ef49f65 commit 8e2efe0

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

{{ cookiecutter.project_slug }}/.github/dependabot.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ version: 2
22

33
updates:
44
- package-ecosystem: pip
5-
directory: "/"
5+
directories:
6+
- "/"
7+
- "/.github/utils"
68
schedule:
79
interval: weekly
810
day: monday
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pip-tools==7.5.0

{{ cookiecutter.project_slug }}/.github/workflows/ci_tests.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,17 @@ jobs:
6161
run: |
6262
python -m pip install --upgrade pip
6363
pip install -U setuptools wheel
64-
pip install -e .[dev]
64+
pip install -r .github/utils/requirements_ci.txt
65+
66+
- name: Prepare for pip-audit{% raw %}
67+
run: pip-compile --output-file=${{ runner.temp }}/requirements.txt --all-extras --allow-unsafe ${{ github.workspace }}/pyproject.toml
6568

6669
- name: Run pip-audit
6770
uses: pypa/gh-action-pip-audit@v1.1.0
71+
with:
72+
inputs: ${{ runner.temp }}/requirements.txt
6873

69-
pytest:{% raw %}
74+
pytest:
7075
name: pytest (${{ matrix.os[1] }}-py${{ matrix.python-version }})
7176
runs-on: ${{ matrix.os[0] }}
7277

0 commit comments

Comments
 (0)