Skip to content

Commit

Permalink
Remove scheduled pixi auto-update and add scheduled build with latest…
Browse files Browse the repository at this point in the history
… dependencies (#191)

* Remove scheduled pixi auto-update and add scheduled build with latest dependencies

Co-authored-by: Pavel Zwerschke <[email protected]>
  • Loading branch information
traversaro and pavelzw authored Apr 23, 2024
1 parent 83e3c66 commit cef18fa
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/pixi-auto-update-ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Pixi auto update

on:
# At 00:00 of every monday
schedule:
- cron: "0 0 * * 1"
# on demand
workflow_dispatch:

Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/pixi-ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
name: CI Workflow

on:
# on demand
workflow_dispatch:
inputs:
delete_pixi_lock:
description: 'If true, delete pixi.lock, to test against the latest version of dependencies.'
required: true
default: 'false'
pull_request:
schedule:
# * is a special character in YAML so you have to quote this string
# Execute a "nightly" build twice a week 2 AM UTC
- cron: '0 2 * * 2,5'

jobs:
build-with-pixi:
Expand All @@ -16,6 +27,13 @@ jobs:
steps:
- uses: actions/checkout@v4

# On periodic jobs and when delete_pixi_lock option is true, delete the pixi.lock to check that the project compiles with latest version of dependencies
- name: Delete pixi.lock on scheduled jobs or if delete_pixi_lock is true
if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.event.inputs.delete_pixi_lock == 'true')
shell: bash
run: |
rm pixi.lock
- name: Print used environment
shell: bash
run: |
Expand Down

0 comments on commit cef18fa

Please sign in to comment.