From d830467045b31c5694b5315de2b049bee12b5c65 Mon Sep 17 00:00:00 2001 From: Goran Jelic-Cizmek Date: Wed, 7 Feb 2024 17:07:33 +0100 Subject: [PATCH] Test latest release only on pushes to main and any PR --- .github/workflows/build-neuron.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-neuron.yml b/.github/workflows/build-neuron.yml index 6b2a271..5d85844 100644 --- a/.github/workflows/build-neuron.yml +++ b/.github/workflows/build-neuron.yml @@ -2,6 +2,9 @@ name: Scheduled NEURON CI on: push: + branches: + - main + pull_request: schedule: # Run at 2am every day - cron: '0 2 * * *' @@ -44,10 +47,10 @@ jobs: then # If we're not told to test a specific branch, test the default branch with neuron-nightly wheels values="{\"branch_or_tag\": \"\", \"default_wheel\": \"neuron-nightly\"}" - if [[ $(date +%u) == 1 ]] || [[ ${{ github.event_name }} == 'pull_request' ]] + if [[ $(date +%u) == 1 ]] || [[ ${{ github.event_name }} == 'pull_request' ]] || [[ ${{ github.event_name }} == 'push' ]] then # If it's a Monday, test the latest release (and latest released wheels) in addition - # Also test it on any PR + # Also test it on any PR, and any push to a PR tag_name="${{steps.get_latest_release.outputs.tag_name}}" values="${values}, {\"branch_or_tag\": \"${tag_name}\", \"default_wheel\": \"neuron==${tag_name}\"}" fi