summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2021-02-04 22:42:40 +0100
committerRalf Gommers <ralf.gommers@gmail.com>2021-02-04 22:42:40 +0100
commitb3cb7752a456f18eb559f759cba35dd6cb82eb8e (patch)
tree05aceb97ac3007bf0ed563857c396ee1d60022b4 /.github
parentd3763198673ffc1092539041b8bd23134ae22bee (diff)
downloadnumpy-b3cb7752a456f18eb559f759cba35dd6cb82eb8e.tar.gz
CI: fix when GitHub Actions builds trigger, and allow ci skips
Similar to what SciPy does. Right now, it triggers even on pushes to branches on forks, which is useless and generates lots of notifications on failures and wasted resources if no failures.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build_test.yml11
1 files changed, 10 insertions, 1 deletions
diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml
index ce0c492e6..1363d9327 100644
--- a/.github/workflows/build_test.yml
+++ b/.github/workflows/build_test.yml
@@ -1,6 +1,14 @@
name: Build_Test
-on: [push, pull_request]
+on:
+ push:
+ branches:
+ - master
+ - maintenance/**
+ pull_request:
+ branches:
+ - master
+ - maintenance/**
defaults:
run:
@@ -12,6 +20,7 @@ env:
jobs:
smoke_test:
+ if: "github.repository == 'numpy/numpy' && !contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip github]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2