Skip to content

feat: include sb features #11

feat: include sb features

feat: include sb features #11

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