Skip to content

Commit 0cb65ac

Browse files
committed
Fix matrix strategy for reusable workflow
1 parent b178409 commit 0cb65ac

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/python-tests.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,19 @@ on:
1313
required: false
1414
type: string
1515
default: ''
16+
python_version:
17+
description: 'Python version to use'
18+
required: true
19+
type: string
20+
os:
21+
description: 'Operating system to run on'
22+
required: true
23+
type: string
1624

1725
jobs:
1826
test:
1927
name: Python
20-
runs-on: ${{ matrix.os }}
28+
runs-on: ${{ inputs.os }}
2129
defaults:
2230
run:
2331
shell: bash
@@ -44,7 +52,7 @@ jobs:
4452
- name: Install uv and set the python version
4553
uses: astral-sh/setup-uv@v6
4654
with:
47-
python-version: ${{ matrix.python }}
55+
python-version: ${{ inputs.python_version }}
4856
version: "0.8.15"
4957

5058
- name: Install dependencies

0 commit comments

Comments
 (0)