Skip to content

Commit 20bcfdf

Browse files
committed
add workflow dispatch to manually trigger io tests on non-ubuntu os
1 parent 3d781df commit 20bcfdf

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.github/workflows/io-test.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,35 @@ on:
44
pull_request:
55
branches: [master]
66
types: [synchronize, opened, reopened, ready_for_review]
7+
inputs:
8+
os: 'ubuntu-latest'
79

810
# run checks on any change of master, including merge of PRs
911
push:
1012
branches: [master]
1113

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
24+
1225
concurrency: # Cancel previous workflows on the same pull request
1326
group: ${{ github.workflow }}-${{ github.ref }}
1427
cancel-in-progress: true
1528

1629
jobs:
1730
build-and-test:
18-
name: Test on (${{ matrix.os }})
19-
runs-on: ${{ matrix.os }}
31+
name: Test on (${{ inputs.os }})
32+
runs-on: ${{ inputs.os }}
2033
strategy:
2134
fail-fast: true
2235
matrix:
23-
# "macos-latest", "windows-latest"
24-
os: ["ubuntu-latest", ]
2536
python-version: ['3.9', ]
2637
defaults:
2738
# by default run in bash mode (required for conda usage)

0 commit comments

Comments
 (0)