Skip to content

Commit ca2ec91

Browse files
authored
Merge pull request NeuralEnsemble#1299 from JuliaSprenger/add/GH_Actions_macos
add workflow dispatch to manually trigger io tests on non-ubuntu os
2 parents 67a0981 + ac28886 commit ca2ec91

File tree

3 files changed

+42
-11
lines changed

3 files changed

+42
-11
lines changed

.github/workflows/io-test.yml

+7-11
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,23 @@
11
name: NeoIoTest
22

33
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]
4+
workflow_call:
5+
inputs:
6+
os:
7+
required: true
8+
type: string
119

1210
concurrency: # Cancel previous workflows on the same pull request
1311
group: ${{ github.workflow }}-${{ github.ref }}
1412
cancel-in-progress: true
1513

1614
jobs:
1715
build-and-test:
18-
name: Test on (${{ matrix.os }})
19-
runs-on: ${{ matrix.os }}
16+
name: Test on (${{ inputs.os }})
17+
runs-on: ${{ inputs.os }}
2018
strategy:
2119
fail-fast: true
2220
matrix:
23-
# "macos-latest", "windows-latest"
24-
os: ["ubuntu-latest", ]
2521
python-version: ['3.9', ]
2622
defaults:
2723
# by default run in bash mode (required for conda usage)
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: NeoIoTest-manual-trigger
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
os:
7+
description: 'The operating system to run the tests on'
8+
required: True
9+
default: 'ubuntu-latest'
10+
type: choice
11+
options:
12+
- macos-latest
13+
- windows-latest
14+
15+
jobs:
16+
call-iotests:
17+
uses: ./.github/workflows/io-test.yml
18+
with:
19+
os: ${{ inputs.os }}

.github/workflows/io-test_trigger.yml

+16
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: ./.github/workflows/io-test.yml
15+
with:
16+
os: ubuntu-latest

0 commit comments

Comments
 (0)