diff options
author | 2022-10-31 21:50:55 +0400 | |
---|---|---|
committer | 2022-10-31 22:01:36 +0400 | |
commit | 531d0e2bf5fd95ae955efb8589e234d9db306901 (patch) | |
tree | 083d7ab372c3fbbfc5c5eb7dcb1b51b17add8a9b | |
parent | Upgrade Package Dependencies (diff) |
Drop Python Coveralls Dependency
Remove the coveralls dependency in favor of the GitHub action uploader.
The action is an official product from coveralls, and has the same
features as the package, however it reduces the project's dependencies
in favor of a simpler more stand-alone solution.
Signed-off-by: Hassan Abouelela <[email protected]>
-rw-r--r-- | .github/workflows/test.yaml | 14 | ||||
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | requirements/coveralls.in | 3 | ||||
-rw-r--r-- | requirements/coveralls.pip | 24 |
4 files changed, 9 insertions, 33 deletions
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 189dc4c..9e30d49 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -67,10 +67,10 @@ jobs: with: python-version: "3.11" cache: pip - cache-dependency-path: requirements/coveralls.pip + cache-dependency-path: requirements/coverage.pip - name: Install dependencies - run: pip install -U -r requirements/coveralls.pip + run: pip install -U -r requirements/coverage.pip - name: Download coverage data uses: actions/download-artifact@v2 @@ -83,9 +83,13 @@ jobs: - name: Display coverage report run: coverage report -m + - name: Generate lcov report + run: coverage lcov + # Comment on the PR with the coverage results and register a GitHub check # which links to the coveralls.io job. - name: Publish coverage report to coveralls.io - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: coveralls --service=github + uses: coverallsapp/[email protected] + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: ./coverage.lcov @@ -16,7 +16,6 @@ upgrade: install-piptools $(PIP_COMPILE_CMD) -o requirements/requirements.pip \ --extra gunicorn --extra sentry pyproject.toml $(PIP_COMPILE_CMD) -o requirements/coverage.pip requirements/coverage.in - $(PIP_COMPILE_CMD) -o requirements/coveralls.pip requirements/coveralls.in $(PIP_COMPILE_CMD) -o requirements/lint.pip requirements/lint.in $(PIP_COMPILE_CMD) -o requirements/pip-tools.pip requirements/pip-tools.in diff --git a/requirements/coveralls.in b/requirements/coveralls.in deleted file mode 100644 index 28d4959..0000000 --- a/requirements/coveralls.in +++ /dev/null @@ -1,3 +0,0 @@ --c coverage.pip - -coveralls>=3.3.1 diff --git a/requirements/coveralls.pip b/requirements/coveralls.pip deleted file mode 100644 index 20a5996..0000000 --- a/requirements/coveralls.pip +++ /dev/null @@ -1,24 +0,0 @@ -# -# This file is autogenerated by pip-compile with python 3.11 -# To update, run: -# -# pip-compile --output-file=requirements/coveralls.pip requirements/coveralls.in -# -certifi==2022.9.24 - # via requests -charset-normalizer==2.1.1 - # via requests -coverage[toml]==6.5.0 - # via - # -c requirements\coverage.pip - # coveralls -coveralls==3.3.1 - # via -r requirements/coveralls.in -docopt==0.6.2 - # via coveralls -idna==3.4 - # via requests -requests==2.28.1 - # via coveralls -urllib3==1.26.12 - # via requests |