From e5bd9ae825207d95a7fae3f7872b8fa114d61372 Mon Sep 17 00:00:00 2001 From: Jonas Depoix Date: Mon, 11 Nov 2024 12:04:38 +0100 Subject: [PATCH] added coveralls integration --- .github/workflows/ci.yml | 21 +++++++++++++++++++-- poetry.lock | 36 ++---------------------------------- pyproject.toml | 5 ++--- 3 files changed, 23 insertions(+), 39 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ab191bc..afd4ac5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,12 +24,12 @@ jobs: - name: Lint run: poe lint - test-coverage: + test: runs-on: ubuntu-latest strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v4 @@ -44,3 +44,20 @@ jobs: - name: Run tests run: | poe ci-test + - name: Report intermediate coverage report + uses: coverallsapp/github-action@v2 + with: + flag-name: run-python-${{ matrix.python-version }} + parallel: true + +finish: + needs: test + runs-on: ubuntu-latest + + steps: + - name: Finalize coverage report + uses: coverallsapp/github-action@v2 + with: + parallel-finished: true + 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" + diff --git a/poetry.lock b/poetry.lock index 0c96bac..d0d5582 100644 --- a/poetry.lock +++ b/poetry.lock @@ -217,41 +217,9 @@ files = [ {file = "coverage-7.6.1.tar.gz", hash = "sha256:953510dfb7b12ab69d20135a0662397f077c59b1e6379a768e97c59d852ee51d"}, ] -[package.dependencies] -tomli = {version = "*", optional = true, markers = "python_full_version <= \"3.11.0a6\" and extra == \"toml\""} - [package.extras] toml = ["tomli"] -[[package]] -name = "coveralls" -version = "4.0.1" -description = "Show coverage stats online via coveralls.io" -optional = false -python-versions = "<3.13,>=3.8" -files = [ - {file = "coveralls-4.0.1-py3-none-any.whl", hash = "sha256:7a6b1fa9848332c7b2221afb20f3df90272ac0167060f41b5fe90429b30b1809"}, - {file = "coveralls-4.0.1.tar.gz", hash = "sha256:7b2a0a2bcef94f295e3cf28dcc55ca40b71c77d1c2446b538e85f0f7bc21aa69"}, -] - -[package.dependencies] -coverage = {version = ">=5.0,<6.0.dev0 || >6.1,<6.1.1 || >6.1.1,<8.0", extras = ["toml"]} -docopt = ">=0.6.1,<0.7.0" -requests = ">=1.0.0,<3.0.0" - -[package.extras] -yaml = ["pyyaml (>=3.10,<7.0)"] - -[[package]] -name = "docopt" -version = "0.6.2" -description = "Pythonic argument parser, that will make you smile" -optional = false -python-versions = "*" -files = [ - {file = "docopt-0.6.2.tar.gz", hash = "sha256:49b3a825280bd66b3aa83585ef59c4a8c82f2c8a522dbe754a8bc8d08c85c491"}, -] - [[package]] name = "exceptiongroup" version = "1.2.2" @@ -443,5 +411,5 @@ zstd = ["zstandard (>=0.18.0)"] [metadata] lock-version = "2.0" -python-versions = ">=3.8,<3.13" -content-hash = "ef642ce9df6240dee52ca62d50fcb18bf0e99a717067a45a101fdf888e06458c" +python-versions = ">=3.8,<=3.14" +content-hash = "1fc5fdbba555a4380ff80fda6988a95ecbaa342ca863cf19f8fc8e3df0430ff7" diff --git a/pyproject.toml b/pyproject.toml index 069c50f..03860b3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,14 +39,14 @@ youtube_transcript_api = "youtube_transcript_api.__main__:main" [tool.poe.tasks] test = "pytest youtube_transcript_api" -ci-test.shell = "coverage run -m unittest discover && coverage report -m --fail-under=100" +ci-test.shell = "coverage run -m unittest discover" coverage.shell = "coverage run -m unittest discover && coverage report -m" format = "ruff format youtube_transcript_api" ci-format = "ruff format youtube_transcript_api --check" lint = "ruff check youtube_transcript_api" [tool.poetry.dependencies] -python = ">=3.8,<3.13" +python = ">=3.8,<=3.14" requests = "*" [tool.poetry.group.test] @@ -57,7 +57,6 @@ pytest = "^8.3.3" coverage = "^7.6.1" mock = "^5.1.0" httpretty = "^1.1.4" -coveralls = "^4.0.1" [tool.poetry.group.dev] optional = true