add pipreqs #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Checking requirements | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Installation of Pipreqs | |
run: | | |
python -m pip install --upgrade pip | |
pip install pipreqs | |
- name: Dependency check (Run Pipreqs) | |
run: | | |
pipreqs --savepath src/reqs-check.txt --mode no-pin src/ | |
python requirements_check.py src/requirements.txt src/reqs-check.txt |