diff --git a/.github/workflows/ci_dockers.yml b/.github/workflows/ci_dockers.yml index 5163c1733eb9e..0ea85eacc3ea3 100644 --- a/.github/workflows/ci_dockers.yml +++ b/.github/workflows/ci_dockers.yml @@ -2,14 +2,11 @@ name: CI build Docker # https://www.docker.com/blog/first-docker-github-action-is-here # https://github.com/docker/build-push-action # see: https://help.github.com/en/actions/reference/events-that-trigger-workflows -on: - # Trigger the workflow on push or pull request, but only for the master branch +on: # Trigger the workflow on push or pull request, but only for the master branch push: - branches: - - master + branches: [master] pull_request: - branches: - - master + branches: [master] jobs: build-Conda: diff --git a/.github/workflows/ci_pkg-install.yml b/.github/workflows/ci_pkg-install.yml index 3b63602096522..e945aaff028e9 100644 --- a/.github/workflows/ci_pkg-install.yml +++ b/.github/workflows/ci_pkg-install.yml @@ -3,11 +3,9 @@ name: Install pkg # see: https://help.github.com/en/actions/reference/events-that-trigger-workflows on: # Trigger the workflow on push or pull request, but only for the master branch push: - branches: - - master + branches: [master] pull_request: - branches: - - master + branches: [master] jobs: diff --git a/.github/workflows/ci_pt-conda.yml b/.github/workflows/ci_pt-conda.yml index 2cd18ca6e73d9..1bf615124465e 100644 --- a/.github/workflows/ci_pt-conda.yml +++ b/.github/workflows/ci_pt-conda.yml @@ -3,13 +3,9 @@ name: PyTorch & Conda # see: https://help.github.com/en/actions/reference/events-that-trigger-workflows on: # Trigger the workflow on push or pull request, but only for the master branch push: - branches: - - master + branches: [master] pull_request: - branches: - - master -# Trigger the workflow on push or pull request -# on: [push, pull_request] + branches: [master] jobs: conda: diff --git a/.github/workflows/ci_test-base.yml b/.github/workflows/ci_test-base.yml index 35322ca6f1d36..1c4a8d826fee6 100644 --- a/.github/workflows/ci_test-base.yml +++ b/.github/workflows/ci_test-base.yml @@ -3,13 +3,9 @@ name: CI base testing # see: https://help.github.com/en/actions/reference/events-that-trigger-workflows on: # Trigger the workflow on push or pull request, but only for the master branch push: - branches: - - master + branches: [master] pull_request: - branches: - - master -# Trigger the workflow on push or pull request -# on: [push, pull_request] + branches: [master] jobs: doctest: diff --git a/.github/workflows/ci_test-full.yml b/.github/workflows/ci_test-full.yml index 284667f0f0a09..493587b04bcff 100644 --- a/.github/workflows/ci_test-full.yml +++ b/.github/workflows/ci_test-full.yml @@ -3,13 +3,9 @@ name: CI complete testing # see: https://help.github.com/en/actions/reference/events-that-trigger-workflows on: # Trigger the workflow on push or pull request, but only for the master branch push: - branches: - - master + branches: [master] pull_request: - branches: - - master -# Trigger the workflow on push or pull request -# on: [push, pull_request] + branches: [master] jobs: pytest: diff --git a/.github/workflows/ci_test-tpu.yml b/.github/workflows/ci_test-tpu.yml index 034a3e5b7f127..5295d1fb44820 100644 --- a/.github/workflows/ci_test-tpu.yml +++ b/.github/workflows/ci_test-tpu.yml @@ -2,8 +2,7 @@ name: TPU tests on: push: - branches: - - master + branches: [master] # TODO: temporal disable TPU testing until we find way how to pass credentials to forked PRs # pull_request: # branches: diff --git a/.github/workflows/code-formatting.yml b/.github/workflows/code-formatting.yml index 301e9d3aac276..3ab38a21aee2e 100644 --- a/.github/workflows/code-formatting.yml +++ b/.github/workflows/code-formatting.yml @@ -2,11 +2,9 @@ name: "Check Code Format" on: # Trigger the workflow on push or pull request, but only for the master branch push: - branches: - - master + branches: [master] pull_request: - branches: - - master + branches: [master] jobs: code-black: diff --git a/.github/workflows/docker-builds.yml b/.github/workflows/docker-builds.yml index 9ec5221ea0eb4..744a8edf48974 100644 --- a/.github/workflows/docker-builds.yml +++ b/.github/workflows/docker-builds.yml @@ -3,11 +3,9 @@ name: Publish Docker Releases # https://github.com/docker/build-push-action on: push: - branches: - - master + branches: [master] release: - types: - - created + types: [created] jobs: build-Conda: diff --git a/.github/workflows/docs-checks.yml b/.github/workflows/docs-checks.yml index b944221605299..b5d874ba14dbc 100644 --- a/.github/workflows/docs-checks.yml +++ b/.github/workflows/docs-checks.yml @@ -1,8 +1,11 @@ name: "Docs check" # https://github.com/marketplace/actions/sphinx-build -on: -- pull_request +on: # Trigger the workflow on push or pull request, but only for the master branch + push: + branches: [master] + pull_request: + branches: [master] jobs: check-docs: diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.yml index b4999f96761d0..e88255f6ea9a7 100644 --- a/.github/workflows/pypi-release.yml +++ b/.github/workflows/pypi-release.yml @@ -3,11 +3,9 @@ name: PyPI Release # https://help.github.com/en/actions/reference/events-that-trigger-workflows on: # Trigger the workflow on push or pull request, but only for the master branch push: - branches: - - master + branches: [master] release: - types: - - created + types: [created] # based on https://github.com/pypa/gh-action-pypi-publish