Skip to content

Commit c6efa05

Browse files
committed
mpi4py: Support for workflow_dispatch trigger
Signed-off-by: Lisandro Dalcin <dalcinl@gmail.com>
1 parent 88302d9 commit c6efa05

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/ompi_mpi4py.yaml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
name: mpi4py
22

3-
on: [ pull_request ]
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
inputs:
7+
repository:
8+
description: 'mpi4py repository'
9+
default: 'mpi4py/mpi4py'
10+
required: false
11+
type: string
12+
ref:
13+
description: 'mpi4py branch/tag/SHA'
14+
default: 'master'
15+
required: false
16+
type: string
417

518
jobs:
619
build:
@@ -89,7 +102,8 @@ jobs:
89102
- name: Checkout mpi4py
90103
uses: actions/checkout@v4
91104
with:
92-
repository: "mpi4py/mpi4py"
105+
repository: ${{ inputs.repository || 'mpi4py/mpi4py' }}
106+
ref: ${{ inputs.ref }}
93107

94108
- name: Build mpi4py wheel
95109
run: python -m pip wheel .

0 commit comments

Comments
 (0)