Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scheduled workflow configuration to update pixi lockfile #221

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/update_pixi_lockfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Update pixi lockfile

permissions:
contents: write
pull-requests: write

on:
workflow_dispatch:
schedule:
- cron: 0 5 1 * *

jobs:
pixi-update:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
lfs: true
flferretti marked this conversation as resolved.
Show resolved Hide resolved

- name: Set up pixi
uses: prefix-dev/setup-pixi@v0.8.1
with:
run-install: false

- name: Install pixi-diff-to-markdown
run: pixi global install pixi-diff-to-markdown

- name: Update pixi lockfile and generate diff
run: |
set -o pipefail
pixi update --json | pixi exec pixi-diff-to-markdown --explicit-column > diff.md

- name: Commit and push changes
run: |
echo "BRANCH_NAME=update-pixi-$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV

- name: Create pull request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update `pixi.lock`
title: Update `pixi` lockfile
body-path: diff.md
branch: ${{ env.BRANCH_NAME }}
base: main
labels: pixi
add-paths: pixi.lock
delete-branch: true
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,14 @@ pytest-icdiff = "*"
robot_descriptions = "*"

[tool.pixi.feature.gpu]
dependencies = { cuda-version = "12.*", cuda-cupti = "*", jaxlib = "**cuda*" }
platforms = ["linux-64"]
system-requirements = { cuda = "12.1" }

[tool.pixi.feature.gpu.dependencies]
cuda-cupti = "*"
cuda-version = "12.*"
jaxlib = {version = "*", build = "*cuda*"}

[tool.pixi.pypi-dependencies]
jaxsim = { path = "./", editable = true }

Expand Down