Skip to content

Commit

Permalink
Bump dependencies with uv sync --upgrade (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
sydney-runkle authored Oct 17, 2024
1 parent 9350571 commit 61aec11
Show file tree
Hide file tree
Showing 3 changed files with 949 additions and 723 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/deps_weekly_upgrade.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: UV Sync Weekly Upgrade

on:
schedule:
# Runs every week on Monday at 7 AM UTC
- cron: '0 7 * * 1'

jobs:
uv-sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "0.4.12"
enable-cache: true

- name: Set up Python 3.12
run: uv python install 3.12

- name: Upgrade dependencies
run: uv sync --python 3.12 --upgrade

- name: Create Branch
run: |
git checkout -b automate-uv-sync
echo "Switched to automate-uv-sync branch"
- name: Commit and Push Changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "GitHub Actions Bot"
git add .
git commit -m "Update dependencies via UV Sync" || echo "No changes to commit"
git push origin automate-uv-sync || echo "No changes to push"
continue-on-error: true
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: automate-uv-sync
title: "Weekly UV Sync Dependency Upgrade"
body: "This pull request updates dependencies via `uv sync --upgrade`."
assignees: "alexmojaki"
2 changes: 1 addition & 1 deletion logfire/_internal/ast_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def rewrite_function(self, node: ast.FunctionDef | ast.AsyncFunctionDef, qualnam
)
return ast.fix_missing_locations(
ast.copy_location(
type(node)( # type: ignore
type(node)(
name=node.name,
args=node.args,
body=[span],
Expand Down
Loading

0 comments on commit 61aec11

Please sign in to comment.