From 6465468bdc6453e8296e3b70c91653a2be7acf5f Mon Sep 17 00:00:00 2001 From: mattip Date: Sun, 1 Jan 2023 15:48:48 +0200 Subject: [PATCH] add 'path' directive to workflows --- .github/workflows/cython.yml | 9 +++------ .github/workflows/numpy.yml | 10 +++------- .github/workflows/pybind11.yml | 9 +++------ .github/workflows/pyo3.yml | 9 +++------ .github/workflows/pytest-html.yml | 9 +++------ .github/workflows/pythran.yml | 9 +++------ 6 files changed, 18 insertions(+), 37 deletions(-) diff --git a/.github/workflows/cython.yml b/.github/workflows/cython.yml index 094a669..c085d82 100644 --- a/.github/workflows/cython.yml +++ b/.github/workflows/cython.yml @@ -4,14 +4,11 @@ name: Cython # Controls when the action will run. on: - # Triggers the workflow on push or pull request events but only for the main branch - push: - branches: [ main ] + workflow_dispatch: pull_request: branches: [ main ] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: + paths: + - '.github/workflows/cython.yml' schedule: # ┌───────────── minute (0 - 59) diff --git a/.github/workflows/numpy.yml b/.github/workflows/numpy.yml index 3e59ad0..f95b6da 100644 --- a/.github/workflows/numpy.yml +++ b/.github/workflows/numpy.yml @@ -2,14 +2,11 @@ name: NumPy # Controls when the action will run. on: - # Triggers the workflow on push or pull request events but only for the main branch - push: - branches: [ main ] + workflow_dispatch: pull_request: branches: [ main ] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: + paths: + - '.github/workflows/numpy.yml' schedule: # ┌───────────── minute (0 - 59) @@ -46,7 +43,6 @@ jobs: - name: Install NumPy run: | - set -xeo pipefail cd repo python -m pip install --upgrade pip python -m pip install -r test_requirements.txt diff --git a/.github/workflows/pybind11.yml b/.github/workflows/pybind11.yml index 27d9fc9..b5d3d7b 100644 --- a/.github/workflows/pybind11.yml +++ b/.github/workflows/pybind11.yml @@ -1,14 +1,11 @@ name: pybind11 on: - # Triggers the workflow on push or pull request events but only for the main branch - push: - branches: [ main ] + workflow_dispatch: pull_request: branches: [ main ] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: + paths: + - '.github/workflows/pybind11.yml' schedule: # ┌───────────── minute (0 - 59) diff --git a/.github/workflows/pyo3.yml b/.github/workflows/pyo3.yml index 5e0f498..707d654 100644 --- a/.github/workflows/pyo3.yml +++ b/.github/workflows/pyo3.yml @@ -2,14 +2,11 @@ name: PyO3 # Controls when the action will run. on: - # Triggers the workflow on push or pull request events but only for the main branch - push: - branches: [ main ] + workflow_dispatch: pull_request: branches: [ main ] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: + paths: + - '.github/workflows/pyo3.yml' schedule: # ┌───────────── minute (0 - 59) diff --git a/.github/workflows/pytest-html.yml b/.github/workflows/pytest-html.yml index 3842fba..6eff80b 100644 --- a/.github/workflows/pytest-html.yml +++ b/.github/workflows/pytest-html.yml @@ -1,14 +1,11 @@ name: pytest-html on: - # Triggers the workflow on push or pull request events but only for the main branch - push: - branches: [ main ] + workflow_dispatch: pull_request: branches: [ main ] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: + paths: + - '.github/workflows/pytest-html.yml' schedule: # ┌───────────── minute (0 - 59) diff --git a/.github/workflows/pythran.yml b/.github/workflows/pythran.yml index e05ddce..45c5f25 100644 --- a/.github/workflows/pythran.yml +++ b/.github/workflows/pythran.yml @@ -2,14 +2,11 @@ name: Pythran # Controls when the action will run. on: - # Triggers the workflow on push or pull request events but only for the main branch - push: - branches: [ main ] + workflow_dispatch: pull_request: branches: [ main ] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: + paths: + - '.github/workflows/pythran.yml' schedule: # ┌───────────── minute (0 - 59)