From 1d6238e53a2a3ef0249ee99c9e8aea09a1d05e3f Mon Sep 17 00:00:00 2001 From: Peter Baumgartner Date: Fri, 9 Feb 2024 23:33:51 -0700 Subject: [PATCH] Auto upgrade Python requirements files --- .github/workflows/upgrade-deps.yml | 24 ++++++++++++++++++++++++ README.md | 4 +++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/upgrade-deps.yml diff --git a/.github/workflows/upgrade-deps.yml b/.github/workflows/upgrade-deps.yml new file mode 100644 index 0000000..ae931e5 --- /dev/null +++ b/.github/workflows/upgrade-deps.yml @@ -0,0 +1,24 @@ +name: upgrade-deps + +on: + schedule: + - cron: '0 4 * * 0' + +jobs: + test: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.12' + - name: upgrade deps + run: | + pip install -U pip pip-tools + make upgrade-requirements + - uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: Update Python dependencies + file_pattern: requirements*.txt diff --git a/README.md b/README.md index 39cd0d7..0671bd5 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,9 @@ To use `django-layout`: django-admin.py startproject \ --template=https://github.com/lincolnloop/django-layout/zipball/main \ --extension=py,md,gitignore,yml,json,dockerignore \ - --name=Makefile,Dockerfile YOUR_PROJECT_NAME + --name=Makefile,Dockerfile \ + --exclude=.github \ + YOUR_PROJECT_NAME *Note: The text following this comment block will become the README.md of the new project.*