From 77c333e52aaec7d5cc38432c63267e9ca7da70cf Mon Sep 17 00:00:00 2001 From: Marko Bocevski Date: Sat, 16 Jan 2021 12:46:50 +0100 Subject: [PATCH] Fix coveralls --- .coveragerc | 3 +++ .github/workflows/pr_checks.yml | 13 +++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.coveragerc b/.coveragerc index 895e2913..7fec6e6a 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,3 +1,6 @@ +[run] +relative_files = True + [report] omit = */site-packages/* diff --git a/.github/workflows/pr_checks.yml b/.github/workflows/pr_checks.yml index c3181134..b2abc844 100644 --- a/.github/workflows/pr_checks.yml +++ b/.github/workflows/pr_checks.yml @@ -1,6 +1,8 @@ -name: PR Checks +name: CI on: + push: + branches: main pull_request: branches: main @@ -68,10 +70,10 @@ jobs: with: python-version: '3.8' - - name: Install pytest and coveralls + - name: Install pytest run: | python -m pip install --upgrade pip - pip install pytest coveralls + pip install pytest - name: Setup CKAN env: @@ -83,6 +85,5 @@ jobs: run: | pytest --ckan-ini=subdir/test.ini --cov=ckanext.saml2auth --disable-warnings ckanext/saml2auth/tests - - name: Report coverage to Coveralls - run: | - coveralls + - name: Coveralls + uses: AndreMiras/coveralls-python-action@develop