Skip to content

Commit e927f14

Browse files
committed
Fixed pip audit for python versions with no constraints file yet.
1 parent 33d3ccb commit e927f14

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/pip-audit.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@ jobs:
3434
run: |
3535
source /tmp/PIPAUDIT/bin/activate
3636
set +e
37-
pip-audit --desc=on --progress-spinner=off -r constraints-${{ matrix.python-version }}.txt --no-deps --disable-pip -f markdown -o /tmp/report-before.md
38-
refreeze=$?
37+
if [ -f constraints-${{ matrix.python-version }}.txt ] ; then
38+
pip-audit --desc=on --progress-spinner=off -r constraints-${{ matrix.python-version }}.txt --no-deps --disable-pip -f markdown -o /tmp/report-before.md
39+
refreeze=$?
40+
else
41+
refreeze=1
42+
fi
3943
set -e
4044
4145
if [ "$refreeze" != 0 ] ; then

0 commit comments

Comments
 (0)