Skip to content

Commit 3d370f3

Browse files
committed
ci: test multiple python versions with parallel coverage uploads
1 parent ea557f9 commit 3d370f3

1 file changed

Lines changed: 18 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ 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:
17-
- uses: actions/checkout@v5
17+
- uses: actions/checkout@v6
1818

1919
- name: Set up Python ${{ matrix.python-version }}
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)