Skip to content

Commit 6b0f0b3

Browse files
committed
Perform coverage/coveralls in CI for Python 2.7
1 parent 1221dc8 commit 6b0f0b3

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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)