-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dependabot does not support uv yet: astral-sh/uv#2512
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 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 |
---|---|---|
|
@@ -253,6 +253,48 @@ jobs: | |
labels: "🤖 ci" | ||
branch: format-python | ||
|
||
sync-uv-lock: | ||
# XXX Dependabot does not support uv.lock files yet, so this job is doing it. | ||
# See: https://github.com/astral-sh/uv/issues/2512 | ||
name: Sync uv.lock | ||
needs: | ||
- project-metadata | ||
if: fromJSON(needs.project-metadata.outputs.is_python_project) | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: "3.12" | ||
cache: "pip" | ||
cache-dependency-path: | | ||
**/pyproject.toml | ||
*requirements.txt | ||
requirements/*.txt | ||
- name: Install uv | ||
run: | | ||
python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt | ||
- name: Sync uv.lock | ||
run: | | ||
uv sync --upgrade | ||
- uses: peter-evans/[email protected] | ||
with: | ||
assignees: ${{ github.actor }} | ||
commit-message: "[autofix] Sync uv.lock" | ||
title: "[autofix] Sync `uv.lock`" | ||
body: > | ||
<details><summary><code>Workflow metadata</code></summary> | ||
> [Auto-generated on run `#${{ github.run_id }}`](${{ github.event.repository.html_url }}/actions/runs/${{ | ||
github.run_id }}) by `${{ github.job }}` job from [`docs.yaml`](${{ github.event.repository.html_url | ||
}}/blob/${{ github.sha }}/.github/workflows/docs.yaml) workflow. | ||
</details> | ||
labels: "📦 dependencies" | ||
branch: sync-uv-lock | ||
|
||
format-markdown: | ||
name: Format Markdown | ||
runs-on: ubuntu-22.04 | ||
|
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