Skip to content

Commit f77f75f

Browse files
authored
fix: add back python version param
1 parent 43976ca commit f77f75f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ on:
2424
coverage-data-pattern:
2525
required: true
2626
type: string
27+
python-version:
28+
required: false
29+
type: string
30+
default: "3.10"
2731

2832
jobs:
2933
pull-request-coverage:
@@ -37,7 +41,7 @@ jobs:
3741
- uses: actions/setup-python@v5
3842
with:
3943
# Use latest Python, so it understands all syntax.
40-
python-version: "3.7"
44+
python-version: ${{ inputs.python-version }}
4145

4246
- uses: actions/download-artifact@v4
4347
with:
@@ -120,7 +124,7 @@ jobs:
120124
with:
121125
# Use the earliest possible version of Python due to a bug in coveragepy.
122126
# See https://github.com/nedbat/coveragepy/issues/1572
123-
python-version: "3.7"
127+
python-version: ${{ inputs.python-version }}
124128

125129
- uses: actions/download-artifact@v4
126130
with:

0 commit comments

Comments
 (0)