Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
  • Loading branch information
kedhammar committed Dec 22, 2023
1 parent c4e3ba1 commit cc48357
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/lint-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,14 @@ jobs:
- name: Install pipreqs
run: pip install pipreqs
- name: Run pipreqs
run: pipreqs . --force
run: pipreqs --savepath pipreqs.txt
- name: Compare requirements
run: |
diff=$(diff requirements.txt requirements.new.txt)
diff=$(diff requirements.txt pipreqs.txt)
if [[ -z "$diff" ]]; then
echo "Requirements match!"
echo $diff
else
echo "Requirements mismatch!"
exit 1
echo $diff
fi

0 comments on commit cc48357

Please sign in to comment.