From f6f97de8cc0ae2f8a5036175aa4fb14cf2be2ac8 Mon Sep 17 00:00:00 2001 From: Hassan Abouelela Date: Sun, 21 Aug 2022 23:24:20 +0400 Subject: Switch To Coveralls Action The coveralls package has consistently caused issues for us, so it made sense to switch to something that's a little more decoupled, especially when it has official support. Switching is simple, since coverage.py can natively generate the format used by the coveralls action, and everything else is plug and play. Signed-off-by: Hassan Abouelela --- .github/workflows/lint-test.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to '.github') diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml index 168a8383..f82e1d4f 100644 --- a/.github/workflows/lint-test.yaml +++ b/.github/workflows/lint-test.yaml @@ -49,6 +49,7 @@ jobs: python manage.py makemigrations --check coverage run manage.py test --no-input coverage report -m + coverage lcov env: CI: True DATABASE_URL: postgres://pysite:pysite@localhost:7777/pysite @@ -56,11 +57,12 @@ jobs: PYTHONWARNINGS: error # This step will publish the coverage reports coveralls.io and - # print a "job" link in the output of the GitHub Action - - name: Publish coverage report to coveralls.io - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: coveralls + # link the report to the commit + - name: Publish Coverage Report + uses: coverallsapp/github-action@1.1.3 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: ./coverage.lcov - name: Tear down docker-compose containers run: docker-compose stop -- cgit v1.2.3