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

Auto update Julia manifest #980

Merged
merged 1 commit into from
Jan 23, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/core_tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Julia Tests
on:
push:
branches: [main, update/pixi-lock]
branches: [main, update/pixi-lock, update/julia-manifest]
paths-ignore: [".teamcity/**"]
tags: ["*"]
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Docs
on:
push:
branches: [main, update/pixi-lock]
branches: [main, update/pixi-lock, update/julia-manifest]
paths-ignore: [".teamcity/**"]
pull_request:
merge_group:
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/julia_auto_update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Julia auto update

on:
schedule:
# At 03:00 on day 1 of the month
- cron: "0 3 1 * *"
# on demand
workflow_dispatch:

jobs:
auto-update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
- uses: prefix-dev/[email protected]
with:
pixi-version: "latest"
- name: Update pixi lock file
run: |
pixi run update-manifest-julia
pixi install
- uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update/julia-manifest
title: Update Julia manifest
commit-message: "Update Julia manifest"
body: Update Julia dependencies to the latest version.
author: "GitHub <[email protected]>"
1 change: 1 addition & 0 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ install-without-pre-commit = { depends_on = [
install = { depends_on = ["install-without-pre-commit", "install-pre-commit"] }
# Instantiate
update-registry-julia = "julia --eval='using Pkg; Registry.update()'"
update-manifest-julia = "julia --eval='using Pkg; Pkg.update()'"
instantiate-julia = "julia --project --eval='using Pkg; Pkg.instantiate()'"
initialize-julia = { depends_on = [
"update-registry-julia",
Expand Down