Skip to content

Commit

Permalink
Fix test coverage (#37)
Browse files Browse the repository at this point in the history
* update codecov action to latest

* Revert "update codecov action to latest"

This reverts commit 60ad892.

* Update test-coverage.yaml

* Update test-coverage.yaml

* add tagging in separate step

* fix version
  • Loading branch information
Felixmil authored Jul 25, 2024
1 parent be0eebf commit 54e00a3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/bump_dev_version_tag_branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:

- name: Get package version from DESCRIPTION file and set as environment variable
run: |
echo "PKG_VERSION=$(Rscript -e 'desc::desc_get_version()')" >> $GITHUB_ENV
echo "PKG_VERSION=$(Rscript -e 'cat(as.character(desc::desc_get_version()))')" >> $GITHUB_ENV
shell: bash

- uses: EndBug/add-and-commit@v9
Expand All @@ -61,5 +61,9 @@ jobs:
message: '🤖 Bump version. [skip actions]'
default_author: github_actions
add: 'DESCRIPTION'
tag: 'v${{ env.PKG_VERSION }}'
tag_push: '--force'

- uses: thejeff77/action-push-tag@v1.0.0
if: ${{ success() }}
with:
tag: v${{ env.PKG_VERSION }}
force: true
7 changes: 5 additions & 2 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

on:
workflow_call:

secrets:
CODECOV_TOKEN:
required: true

name: test-coverage

permissions: read-all
Expand Down Expand Up @@ -35,7 +38,7 @@ jobs:
covr::to_cobertura(cov)
shell: Rscript {0}

- uses: codecov/codecov-action@v4.5
- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: ${{ github.event_name != 'pull_request' && true || false }}
file: ./cobertura.xml
Expand Down

0 comments on commit 54e00a3

Please sign in to comment.