From 9e6d6a3f69588f982aed02483c64263d490a5fea Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Tue, 16 Jul 2024 03:25:31 -0400 Subject: [PATCH] ci: Use coveralls since codecov errors --- .github/workflows/tests.yml | 17 ++++------------- setup.py | 1 + 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e87a6d8f..d6b72de5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,7 +16,7 @@ jobs: cache: pip cache-dependency-path: setup.py - run: pip install -e .[test] - - name: pytest scrapyd --cov=. --cov-report=xml + - run: pytest scrapyd --cov=. --cov-report=xml - name: Run integration tests run: | printf "[scrapyd]\nusername = hello12345\npassword = 67890world\n" > scrapyd.conf @@ -26,15 +26,6 @@ jobs: pytest integration_tests cat scrapyd.log kill %% - - uses: codecov/codecov-action@v4 - with: - token: ${{ secrets.CODECOV_TOKEN }} - directory: ./coverage/reports/ - env_vars: OS,PYTHON - fail_ci_if_error: false - files: ./coverage.xml - flags: unittests - name: codecov-umbrella - # https://github.com/codecov/codecov-action/issues/476 - # path_to_write_report: ./coverage/codecov_report.txt - verbose: true + - env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: coveralls --service=github diff --git a/setup.py b/setup.py index 9e135166..5d9fb43f 100644 --- a/setup.py +++ b/setup.py @@ -32,6 +32,7 @@ ], extras_require={ 'test': [ + 'coveralls', 'pytest', 'pytest-cov', 'requests',