From bba9e5052a6ce2b892fef6c7cc9a3e4016af89d0 Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Sun, 31 Jan 2021 10:16:42 -0500 Subject: Simplify GitHub Actions workflow configs so they run on any push or PR instead of only ones to specific branches I like getting to see the output of CI tools while I develop on a branch and suspect that will be handy for others as well. --- .github/workflows/ci.yml | 10 +--------- .github/workflows/doc.yml | 10 +--------- .github/workflows/lint.yml | 10 +--------- 3 files changed, 3 insertions(+), 27 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8788a530..770ac02c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,15 +2,7 @@ # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions name: CI -on: - push: - branches: - - master - - 2.0 - pull_request: - branches: - - master - - 2.0 +on: [push, pull_request] env: PYTHON_LATEST: 3.9 diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 26df30d2..f9ed6ca8 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -2,15 +2,7 @@ # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions name: Doc -on: - push: - branches: - - master - - 2.0 - pull_request: - branches: - - master - - 2.0 +on: [push, pull_request] env: PYTHON_LATEST: 3.9 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 13c57507..d554bb52 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,15 +2,7 @@ # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions name: Lint -on: - push: - branches: - - master - - 2.0 - pull_request: - branches: - - master - - 2.0 +on: [push, pull_request] env: PYTHON_LATEST: 3.9 -- cgit v1.2.1