From e68023343a32702ed9789cd9e63851bcf6be15e0 Mon Sep 17 00:00:00 2001 From: Richard Taylor <29562583+richardt94@users.noreply.github.com> Date: Wed, 16 Mar 2022 10:49:29 +1100 Subject: [PATCH 1/2] Only run CI on master and develop The current `build.yml` runs on pushes to all branches, including the `gh-pages` branch which only contains the docs and no actual code, and will therefore always fail CI. It makes more sense to run it only on the "main" branches (`master` and `develop`), especially given the resources consumed by the CI runs. --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2b23f3996..1acbb8bcc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,9 +5,11 @@ on: pull_request: branches: - 'master' + - 'develop' push: branches: - - '**' + - 'master' + - 'develop' jobs: build: From 75568d175fb9b7f9421e532a5dbfc65c2c4f3b28 Mon Sep 17 00:00:00 2001 From: Richard Taylor <29562583+richardt94@users.noreply.github.com> Date: Wed, 16 Mar 2022 11:02:33 +1100 Subject: [PATCH 2/2] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1acbb8bcc..a5e040269 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ jobs: build: if: ${{ ! (contains(github.event.head_commit.message, 'ci skip') || contains(github.event.head_commit.message, 'skip ci'))}} runs-on: ubuntu-18.04 - name: Python ${{ matrix.python }} + name: Python ${{ matrix.python-version }}, GDAL ${{ matrix.GDALVERSION }} strategy: matrix: include: