Skip to content

Commit e5bd9ae

Browse files
committed
added coveralls integration
1 parent 3f5c0bc commit e5bd9ae

File tree

3 files changed

+23
-39
lines changed

3 files changed

+23
-39
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ jobs:
2424
- name: Lint
2525
run: poe lint
2626

27-
test-coverage:
27+
test:
2828
runs-on: ubuntu-latest
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
32+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
3333

3434
steps:
3535
- uses: actions/checkout@v4
@@ -44,3 +44,20 @@ jobs:
4444
- name: Run tests
4545
run: |
4646
poe ci-test
47+
- name: Report intermediate coverage report
48+
uses: coverallsapp/github-action@v2
49+
with:
50+
flag-name: run-python-${{ matrix.python-version }}
51+
parallel: true
52+
53+
finish:
54+
needs: test
55+
runs-on: ubuntu-latest
56+
57+
steps:
58+
- name: Finalize coverage report
59+
uses: coverallsapp/github-action@v2
60+
with:
61+
parallel-finished: true
62+
carryforward: "run-python-3.8,run-python-3.9,run-python-3.10,run-python-3.11,run-python-3.12,run-python-3.13,run-python-3.14"
63+

poetry.lock

Lines changed: 2 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ youtube_transcript_api = "youtube_transcript_api.__main__:main"
3939

4040
[tool.poe.tasks]
4141
test = "pytest youtube_transcript_api"
42-
ci-test.shell = "coverage run -m unittest discover && coverage report -m --fail-under=100"
42+
ci-test.shell = "coverage run -m unittest discover"
4343
coverage.shell = "coverage run -m unittest discover && coverage report -m"
4444
format = "ruff format youtube_transcript_api"
4545
ci-format = "ruff format youtube_transcript_api --check"
4646
lint = "ruff check youtube_transcript_api"
4747

4848
[tool.poetry.dependencies]
49-
python = ">=3.8,<3.13"
49+
python = ">=3.8,<=3.14"
5050
requests = "*"
5151

5252
[tool.poetry.group.test]
@@ -57,7 +57,6 @@ pytest = "^8.3.3"
5757
coverage = "^7.6.1"
5858
mock = "^5.1.0"
5959
httpretty = "^1.1.4"
60-
coveralls = "^4.0.1"
6160

6261
[tool.poetry.group.dev]
6362
optional = true

0 commit comments

Comments
 (0)