Skip to content

Commit 49253f0

Browse files
committed
fix whitespace and add if statement to codecov upload
1 parent 763ac24 commit 49253f0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/unittests_codecov.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
run:
1313
name: Run unit tests with codecov upload
1414
runs-on: ${{ matrix.os }}
15+
env:
16+
USING_COVERAGE: '3.7'
1517
strategy:
1618
matrix:
1719
os: [ubuntu-latest, macos-latest, windows-latest]
@@ -31,7 +33,8 @@ jobs:
3133
pip install -r tests/test_requirements.txt
3234
pip install -e .
3335
pytest --cov=mkdocs_git_authors_plugin --cov-report=xml
34-
- name: Upload coverage to Codecov
36+
- name: Upload coverage to Codecov
37+
if: "contains(env.USING_COVERAGE, matrix.python-version)"
3538
uses: codecov/codecov-action@v1
3639
with:
3740
token: ${{ secrets.CODECOV_TOKEN }}

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
[![Actions Status](https://github.com/timvink/mkdocs-git-authors-plugin/workflows/pytest/badge.svg)](https://github.com/timvink/mkdocs-git-authors-plugin/actions)
2-
32
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mkdocs-git-authors-plugin)
43
![PyPI](https://img.shields.io/pypi/v/mkdocs-git-authors-plugin)
54
![PyPI - Downloads](https://img.shields.io/pypi/dm/mkdocs-git-authors-plugin)

0 commit comments

Comments
 (0)