Skip to content

Commit e7fd309

Browse files
authored
Merge pull request #4 from lhelwerd/chore/coverage-2.7
Perform coverage/coveralls in CI for Python 2.7 and fix flag name for 3.x
2 parents 1221dc8 + 83c55c6 commit e7fd309

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
if: "${{ success() }}"
5757
with:
5858
github-token: "${{ secrets.GITHUB_TOKEN }}"
59-
flag-name: "python-${{ matrix.python }}"
59+
flag-name: "python-${{ matrix.python-version }}"
6060
parallel: true
6161
format: cobertura
6262
files: coverage.xml
@@ -71,11 +71,20 @@ jobs:
7171
uses: actions/checkout@v5
7272
- name: Install package
7373
run: |
74-
pip install --upgrade pip setuptools
74+
pip install --upgrade pip setuptools coverage
7575
pip install .
7676
- name: Run tests (unittest)
7777
run: |
78-
python -m unittest discover -v || true
78+
make coverage
79+
- name: Coveralls upload
80+
uses: coverallsapp/github-action@v2
81+
if: "${{ success() }}"
82+
with:
83+
github-token: "${{ secrets.GITHUB_TOKEN }}"
84+
flag-name: "python-2.7"
85+
parallel: true
86+
format: cobertura
87+
files: coverage.xml
7988
- name: Legacy note
8089
run: echo "Python 2.7 run completed (non-blocking)."
8190

0 commit comments

Comments
 (0)