diff --git a/.github/workflows/update-requirements.yml b/.github/workflows/update-requirements.yml new file mode 100644 index 00000000..4790a60a --- /dev/null +++ b/.github/workflows/update-requirements.yml @@ -0,0 +1,19 @@ +name: Update requirements.txt on PR merge + +on: + pull_request: + types: [closed] + branches: + - master + +jobs: + update-requirements: + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Automatic requirements.txt for Python Project + uses: ryan-rozario/pipreqs-action@master + with: + PROJECT_PATH: project_folder # Replace with the path to your Python project + REQUIREMENT_PATH: project_folder/requirements.txt # Replace with your requirements.txt file path diff --git a/.gitignore b/.gitignore index fcf72ef9..86448efd 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,10 @@ *.pyc .idea* build/ -.ipynb_checkpoints* data/ -.vscode/ \ No newline at end of file +.vscode/ +.ipynb_checkpoints* +.ipynb_checkpoints/ +.pytest_cache/ +venv/ +.venv/ \ No newline at end of file