From 4f6d2f8127aad4ffb16a24b3d5473ee6967e34ec Mon Sep 17 00:00:00 2001 From: Dylan Date: Thu, 14 Nov 2024 17:37:20 +0000 Subject: [PATCH] Added coverage to test CI --- .github/workflows/{pytest.yaml => test.yaml} | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) rename .github/workflows/{pytest.yaml => test.yaml} (72%) diff --git a/.github/workflows/pytest.yaml b/.github/workflows/test.yaml similarity index 72% rename from .github/workflows/pytest.yaml rename to .github/workflows/test.yaml index bd56a45..6c37ae4 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/test.yaml @@ -1,9 +1,10 @@ -name: pytest +name: test on: push: branches: - main + pull_request: branches: - main @@ -34,10 +35,8 @@ jobs: run: poetry install --with=dev - name: Run the tests run: poetry run -- pytest tests --cov=dfttoolkit --cov-report xml - - # TODO when approved for the maurergroup organisation - # - name: Coveralls GitHub Action - # uses: coverallsapp/github-action@v2.3.4 - # with: - # github-token: ${{ secrets.GITHUB_TOKEN }} - # parallel: true # Enable parallel support for Coveralls if needed + - name: Coveralls + uses: coverallsapp/github-action@v2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + compare-ref: ${{ github.event.repository.default_branch }}