Skip to content

Commit 5f2a7a3

Browse files
committed
ci: test multiple python versions with parallel coverage uploads
1 parent 00c971e commit 5f2a7a3

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ["3.9"]
14+
python-version: ["3.10", "3.12", "3.14"]
1515

1616
steps:
1717
- uses: actions/checkout@v5
@@ -20,6 +20,7 @@ jobs:
2020
uses: actions/setup-python@v6
2121
with:
2222
python-version: ${{ matrix.python-version }}
23+
cache: pip
2324

2425
- name: Install dependencies
2526
run: |
@@ -30,9 +31,18 @@ jobs:
3031
- name: Run tests
3132
run: pytest -ra --cov=tika
3233

33-
- name: Upload coverage to Coveralls
34-
if: success()
35-
env:
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
run: |
38-
coveralls
34+
- name: Coveralls parallel
35+
uses: coverallsapp/github-action@v2
36+
with:
37+
flag-name: coverage-python-${{ matrix.python-version }}
38+
parallel: true
39+
40+
finish-coverage:
41+
needs: test
42+
if: ${{ always() }}
43+
runs-on: ubuntu-slim
44+
steps:
45+
- name: Coveralls finished
46+
uses: coverallsapp/github-action@v2
47+
with:
48+
parallel-finished: true

0 commit comments

Comments
 (0)