-
Notifications
You must be signed in to change notification settings - Fork 11
57 lines (45 loc) · 1.38 KB
/
pixi.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Pixi
permissions:
contents: write
pull-requests: write
on:
workflow_dispatch:
schedule:
# Execute at 5am UTC on the first day of the month.
- cron: '0 5 1 * *'
jobs:
pixi-update:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Set up pixi
uses: prefix-dev/[email protected]
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: Test project against updated pixi
run: pixi run --environment tasks-cpu test
env:
PY_COLORS: "1"
JAX_PLATFORM_NAME: cpu
- 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@v7
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