Skip to content

Commit

Permalink
try making pipreqs fail for unresolved packages
Browse files Browse the repository at this point in the history
  • Loading branch information
kedhammar committed Jul 1, 2024
1 parent 10ea5b0 commit 0f671b6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/lint-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,13 @@ jobs:
pip install -r requirements-dev.txt
- name: Run pipreqs
run: pipreqs --savepath pipreqs.txt taca
run: |
pipreqs --savepath pipreqs.txt taca 2>&1 | tee pipreqs_output.log
if grep -q 'WARNING: Package .* does not exist or network problems' pipreqs_output.log; then
echo "Unresolved packages or network issues detected in pipreqs output."
grep 'WARNING: Package .* does not exist or network problems' pipreqs_output.log
exit 1
fi
- name: Compare requirements
run: |
Expand Down

0 comments on commit 0f671b6

Please sign in to comment.