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

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

Merged
merged 2 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
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
20 changes: 20 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,15 @@ 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 -rf pixi.lock
pixi list
cat pixi.lock

- name: Print used environment
shell: bash
run: |
Expand Down
Loading