diff --git a/.github/workflows/all-tests.yml b/.github/workflows/all-tests.yml index 1ddbf10d69..824885459d 100644 --- a/.github/workflows/all-tests.yml +++ b/.github/workflows/all-tests.yml @@ -19,6 +19,8 @@ concurrency: # Cancel previous workflows on the same pull request jobs: run: name: ${{ matrix.os }} Python ${{ matrix.python-version }} + # Run only in upstream repo to avoid unnecessary runs in forks + if: github.repository == 'SpikeInterface/spikeinterface' runs-on: ${{ matrix.os }} strategy: fail-fast: false diff --git a/.github/workflows/caches_cron_job.yml b/.github/workflows/caches_cron_job.yml index 2454e97ad7..3bda658868 100644 --- a/.github/workflows/caches_cron_job.yml +++ b/.github/workflows/caches_cron_job.yml @@ -11,6 +11,8 @@ on: jobs: create-gin-data-cache-if-missing: name: Caching data env + # Run only in upstream repo to avoid unnecessary runs in forks + if: github.repository == 'SpikeInterface/spikeinterface' runs-on: ${{ matrix.os }} strategy: fail-fast: false diff --git a/.github/workflows/full-test-with-codecov.yml b/.github/workflows/full-test-with-codecov.yml index 9d56be8498..1f10e34c0f 100644 --- a/.github/workflows/full-test-with-codecov.yml +++ b/.github/workflows/full-test-with-codecov.yml @@ -11,6 +11,8 @@ env: jobs: full-tests-with-codecov: name: Codecov in Ubuntu + # Run only in upstream repo to avoid unnecessary runs in forks + if: github.repository == 'SpikeInterface/spikeinterface' runs-on: ${{ matrix.os }} strategy: fail-fast: false diff --git a/.github/workflows/installation-tips-test.yml b/.github/workflows/installation-tips-test.yml index e83399cf7c..b9e90e2150 100644 --- a/.github/workflows/installation-tips-test.yml +++ b/.github/workflows/installation-tips-test.yml @@ -8,6 +8,8 @@ on: jobs: installation-tips-testing: name: Build Conda Env on ${{ matrix.os }} OS + # Run only in upstream repo to avoid unnecessary runs in forks + if: github.repository == 'SpikeInterface/spikeinterface' runs-on: ${{ matrix.os }} defaults: run: diff --git a/.github/workflows/test_kilosort4.yml b/.github/workflows/test_kilosort4.yml index 42e6140917..ad6b04073a 100644 --- a/.github/workflows/test_kilosort4.yml +++ b/.github/workflows/test_kilosort4.yml @@ -13,6 +13,8 @@ jobs: # Poll Pypi for all released KS4 versions >4.0.16, save to JSON # and store them in a matrix for the next job. runs-on: ubuntu-latest + # Run only in upstream repo to avoid unnecessary runs in forks + if: github.repository == 'SpikeInterface/spikeinterface' outputs: matrix: ${{ steps.set-matrix.outputs.matrix }} steps: