Merge remote-tracking branch 'upstream/master' #5
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: Generate Requirements Lockfile | |
on: | |
push: | |
paths: | |
- requirements.txt | |
- requirements-dev.txt | |
jobs: | |
generate-lockfile: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
cache: 'pip' | |
- name: Install pipenv | |
run: python -m pip install --upgrade pipenv wheel | |
# TODO: add caching of Pipfile.lock | |
- name: Install dependencies | |
run: pipenv install --deploy | |
- name: Generate lockfile | |
run: pipenv lock | |
- name: Commit new lockfile | |
run: | | |
git config --global user.name "CI" | |
git config --global user.email "[email protected]" | |
git add Pipfile.lock | |
git commit --message "[CI] Generated new Pipfile.lock" || exit 0 | |
git push |