Skip to content

Commit 904fdc1

Browse files
committed
use reusable workflow to disentangle manuall and automatic triggering
1 parent 20bcfdf commit 904fdc1

File tree

3 files changed

+39
-21
lines changed

3 files changed

+39
-21
lines changed

.github/workflows/io-test.yml

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,10 @@
11
name: NeoIoTest
22

3-
on:
4-
pull_request:
5-
branches: [master]
6-
types: [synchronize, opened, reopened, ready_for_review]
7-
inputs:
8-
os: 'ubuntu-latest'
9-
10-
# run checks on any change of master, including merge of PRs
11-
push:
12-
branches: [master]
13-
14-
workflow_dispatch:
15-
inputs:
16-
os:
17-
description: 'The operating system to run the tests on'
18-
required: True
19-
default: 'ubuntu-latest'
20-
type: choice
21-
options:
22-
- macos-latest
23-
- windows-latest
3+
workflow_call:
4+
inputs:
5+
os:
6+
required: true
7+
type: string
248

259
concurrency: # Cancel previous workflows on the same pull request
2610
group: ${{ github.workflow }}-${{ github.ref }}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: NeoIoTest-manual-trigger
2+
3+
workflow_dispatch:
4+
inputs:
5+
os:
6+
description: 'The operating system to run the tests on'
7+
required: True
8+
default: 'ubuntu-latest'
9+
type: choice
10+
options:
11+
- macos-latest
12+
- windows-latest
13+
14+
jobs:
15+
call-iotests:
16+
uses: Neuralensemble/python-neo/.github/workflows/io-test.yml@main
17+
with:
18+
os: ${{ inputs.os }}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: NeoIoTest-automatic-trigger
2+
3+
on:
4+
pull_request:
5+
branches: [master]
6+
types: [synchronize, opened, reopened, ready_for_review]
7+
8+
# run checks on any change of master, including merge of PRs
9+
push:
10+
branches: [master]
11+
12+
jobs:
13+
call-iotests:
14+
uses: Neuralensemble/python-neo/.github/workflows/io-test.yml@main
15+
with:
16+
os: ubuntu-latest

0 commit comments

Comments
 (0)