mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 20:31:35 +00:00
Enhance upgrade workflow with tomli-w installation
Added installation of tomli-w and updated pyproject.toml overrides.
This commit is contained in:
14
.github/workflows/upgrade-deps.yml
vendored
14
.github/workflows/upgrade-deps.yml
vendored
@@ -17,6 +17,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
enable-cache: true
|
enable-cache: true
|
||||||
|
|
||||||
|
- name: Install tomli-w
|
||||||
|
run: |
|
||||||
|
uv install tomli-w
|
||||||
|
|
||||||
|
- name: Update overrides in pyproject.toml (if any)
|
||||||
|
run: |
|
||||||
|
python src/tools//apply_overrides.py
|
||||||
|
|
||||||
- name: Calculate Cutoff Date
|
- name: Calculate Cutoff Date
|
||||||
id: date
|
id: date
|
||||||
run: |
|
run: |
|
||||||
@@ -37,7 +45,7 @@ jobs:
|
|||||||
# git diff --quiet returns 0 if there are no changes, and 1 if there are changes.
|
# git diff --quiet returns 0 if there are no changes, and 1 if there are changes.
|
||||||
if git diff --quiet uv.lock; then
|
if git diff --quiet uv.lock; then
|
||||||
echo "has_changes=false" >> $GITHUB_OUTPUT
|
echo "has_changes=false" >> $GITHUB_OUTPUT
|
||||||
echo "No older-than-14-days updates found. Skipping PR."
|
echo "No changes found. Skipping PR."
|
||||||
else
|
else
|
||||||
echo "has_changes=true" >> $GITHUB_OUTPUT
|
echo "has_changes=true" >> $GITHUB_OUTPUT
|
||||||
echo "Lockfile updated. Proceeding to PR generation."
|
echo "Lockfile updated. Proceeding to PR generation."
|
||||||
@@ -48,10 +56,10 @@ jobs:
|
|||||||
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1
|
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
commit-message: "chore: lockfile dependency upgrade (${{ steps.date.outputs.cutoff_date }})"
|
commit-message: "chore: dependency upgrades (${{ steps.date.outputs.cutoff_date }})"
|
||||||
title: "Dependency Upgrade: Quarantine Buffer Applied"
|
title: "Dependency Upgrade: Quarantine Buffer Applied"
|
||||||
body: |
|
body: |
|
||||||
Updates the `uv.lock` file to the latest package versions available as of **${{ steps.date.outputs.cutoff_date }}**.
|
Updates the `uv.lock` and `pyproject.toml` files to the latest package versions available as of **${{ steps.date.outputs.cutoff_date }}**.
|
||||||
|
|
||||||
- **Single Source of Truth:** Dependencies are still read from `pyproject.toml`.
|
- **Single Source of Truth:** Dependencies are still read from `pyproject.toml`.
|
||||||
- **14-Day Buffer:** Only releases older than 2 weeks are included.
|
- **14-Day Buffer:** Only releases older than 2 weeks are included.
|
||||||
|
|||||||
Reference in New Issue
Block a user