Skip to content

Commit abcee73

Browse files
authored
Add optional os argument to Python unit test workflow (#209)
1 parent 5c783c1 commit abcee73

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/python_unit_tests.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,19 @@ on:
1111
description: List of Python versions to be used
1212
required: true
1313
type: string
14+
os:
15+
description: List of operating systems to be used
16+
default: '["ubuntu-latest", "windows-latest"]'
17+
required: false
18+
type: string
1419

1520
jobs:
1621
unit_tests:
1722
name: Unit tests
1823
strategy:
1924
fail-fast: false
2025
matrix:
21-
os: ["ubuntu-latest", "windows-latest"]
26+
os: ${{ fromJSON(inputs.os)}}
2227
python-version: ${{ fromJSON(inputs.python-versions)}}
2328
runs-on: ${{ matrix.os }}
2429
env:

0 commit comments

Comments
 (0)