From 97628673d2bee686993d7f9e0b7a3c783f73a8ab Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Tue, 7 Apr 2020 11:49:10 +0100 Subject: [PATCH 1/3] Build PR branches only once (for origin branches) and skip docs changes --- .github/workflows/test.yml | 7 ++++++- .travis.yml | 4 ++++ appveyor.yml | 8 ++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6dfce6aa..5c579c7c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,11 @@ name: Test -on: [push, pull_request] +on: + push: + - master + pull_request: + paths-ignore: + - 'docs/**' jobs: test: diff --git a/.travis.yml b/.travis.yml index 4ad0022c..4bda329c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,9 @@ language: minimal +branches: + only: + - master + jobs: include: - name: Linux | x86_64 + i686 | Python 3.5 diff --git a/appveyor.yml b/appveyor.yml index f7f7e3b9..d0c1f3c9 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -19,3 +19,11 @@ install: python -m pip install -r requirements-dev.txt # the '-u' flag is required so the output is in the correct order. # See https://github.com/joerick/cibuildwheel/pull/24 for more info. test_script: python -u ./bin/run_tests.py + +branches: + only: + - master + +skip_commits: + files: + - docs/* From a2eff759e84e5b61d4f4ec7bc7278fe7ddefc295 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Tue, 7 Apr 2020 11:54:37 +0100 Subject: [PATCH 2/3] Fix github config --- .github/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5c579c7c..d7c41f51 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,8 @@ name: Test on: push: - - master + branches: + - master pull_request: paths-ignore: - 'docs/**' From 1701bc6bde1296fe516db417cb4ccc355603a61d Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Tue, 7 Apr 2020 18:11:12 +0100 Subject: [PATCH 3/3] Limit the master-only rule to joerick/cibuildwheel --- .github/workflows/test.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d7c41f51..3c8ebd4e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,15 +1,16 @@ name: Test on: - push: - branches: - - master + push: {} pull_request: paths-ignore: - 'docs/**' jobs: test: + # skip branch builds on joerick/cibuildwheel, but always build `master` and pull requests + if: github.repository != 'joerick/cibuildwheel' || github.ref == 'refs/heads/master' || github.event_name == 'pull_request' + name: Test cibuildwheel on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: