Skip to content

Commit b7a4c87

Browse files
change py version to generate cov report
1 parent d808bed commit b7a4c87

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ jobs:
7878
uv run pytest --cov=src --cov-report=term-missing
7979
8080
- name: Generate coverage report
81-
if: matrix.python-version == '3.11'
81+
if: matrix.python-version == '3.13'
8282
run: |
8383
uv run pytest --cov=src --cov-report=xml:coverage.xml
8484
8585
- name: Pytest coverage comment
86-
if: matrix.python-version == '3.11'
86+
if: matrix.python-version == '3.13'
8787
id: coverageComment
8888
uses: MishaKav/pytest-coverage-comment@main
8989
with:
@@ -99,7 +99,7 @@ jobs:
9999
unique-id-for-comment: "python-coverage"
100100

101101
- name: Update README with coverage badge
102-
if: matrix.python-version == '3.11'
102+
if: matrix.python-version == '3.13'
103103
run: |
104104
# Extract coverage percentage and color from the coverageComment step
105105
COVERAGE_PERCENTAGE=$(echo "${{ steps.coverageComment.outputs.coverage }}" | grep -o '[0-9]*%' | tr -d '%')
@@ -115,12 +115,12 @@ jobs:
115115
<!-- Pytest Coverage Comment:End -->" README.md
116116
117117
- name: Clean up coverage file
118-
if: matrix.python-version == '3.11'
118+
if: matrix.python-version == '3.13'
119119
run: |
120120
rm -f coverage.xml
121121
122122
- name: Commit and push README changes
123-
if: matrix.python-version == '3.11'
123+
if: matrix.python-version == '3.13'
124124
uses: actions-js/push@master
125125
with:
126126
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)