forked from cookiecutter/cookiecutter-django
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to run uv lock (cookiecutter#5422)
* Add workflow to keep uv.lock up to date Should do the job for dependabot updates * Only run uv lock workflow when GH_PAT is set * Make a change to pyproject.toml * Attempt to fix workflow syntax * Attempt to fix workflow syntax * Regenerate uv.lock
- Loading branch information
1 parent
f590d14
commit 3252aa7
Showing
3 changed files
with
74 additions
and
39 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: uv | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "pyproject.toml" | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
lock: | ||
runs-on: ubuntu-latest | ||
env: | ||
GH_PAT: ${{ secrets.GH_PAT }} | ||
steps: | ||
- name: Checkout with token | ||
uses: actions/checkout@v4 | ||
if: ${{ env.GH_PAT != '' }} | ||
with: | ||
token: ${{ env.GH_PAT }} | ||
|
||
- name: Checkout without token | ||
uses: actions/checkout@v4 | ||
if: ${{ env.GH_PAT == '' }} | ||
|
||
- uses: astral-sh/setup-uv@v3 | ||
with: | ||
enable-cache: true | ||
- run: uv lock | ||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: Regenerate uv.lock |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,7 @@ line-length = 119 | |
target-version = [ | ||
'py312', | ||
] | ||
|
||
# ==== isort ==== | ||
|
||
[tool.isort] | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.