Skip to content

Commit

Permalink
Keep uv.lock updated and in sync
Browse files Browse the repository at this point in the history
Dependabot does not support uv yet: astral-sh/uv#2512
  • Loading branch information
kdeldycke committed Jul 16, 2024
1 parent 8a86392 commit cecd2ce
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/autofix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check failure on line 262 in .github/workflows/autofix.yaml

View workflow job for this annotation

GitHub Actions / lint-github-action

property "is_python_project" is not defined in object type {blacken_docs_params: string; doc_files: string; python_files: string; ruff_py_version: string}
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
Expand Down
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
> \[!IMPORTANT\]
> This version is not released yet and is under active development.
- Add a new job to keep `uv.lock` updated and in sync.

## [4.2.1 (2024-07-15)](https://github.com/kdeldycke/workflows/compare/v4.2.0...v4.2.1)

- Fix options in `gha-utils mailmap-sync` calls.
Expand Down

0 comments on commit cecd2ce

Please sign in to comment.