Skip to content

Commit

Permalink
add 'path' directive to workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Jan 1, 2023
1 parent 02afdd1 commit 6465468
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 37 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/cython.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/numpy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/pybind11.yml
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/pyo3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/pytest-html.yml
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/pythran.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6465468

Please sign in to comment.