Skip to content

Commit

Permalink
dont commit on protected branch and remove testthat duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
evaham1 committed Oct 16, 2024
1 parent cf116a2 commit ca7f2ae
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,11 @@ jobs:
})
shell: Rscript {0}

- name: Show testthat output
if: always() # Always show the testthat output
run: |
## Find and display testthat output (testthat.Rout)
find '${{ runner.temp }}/package' -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash

- name: Upload test results (if failure)
if: failure()
uses: actions/upload-artifact@v4
with:
name: coverage-test-failures
path: ${{ runner.temp }}/package

- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: ${{ github.event_name != 'pull_request' && true || false }}
file: ./cobertura.xml
plugin: noop
disable_search: true
token: ${{ secrets.CODECOV_TOKEN }}
token: ${{ secrets.CODECOV_TOKEN }}
commit_parent: "false"

0 comments on commit ca7f2ae

Please sign in to comment.