Skip to content

Commit

Permalink
Merge pull request #67 from dieghernan/main
Browse files Browse the repository at this point in the history
Update steps in codecov action
  • Loading branch information
dieghernan authored Dec 7, 2024
2 parents 76c09c3 + 1fdc1cd commit 7c70afe
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ jobs:
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
AEMET_API_KEY: ${{ secrets.AEMET_API_KEY_CODECOV }}
AEMET_API_KEY01: ${{ secrets.AEMET_API_KEY_PKGDOWN }}
AEMET_API_KEY02: ${{ secrets.AEMET_API_KEY }}


steps:
- uses: actions/checkout@v4
Expand All @@ -27,8 +31,13 @@ jobs:
with:
extra-packages: any::covr, any::xml2
needs: coverage


- name: R CMD Check examples
if: ${{ !cancelled() }}
uses: r-lib/actions/check-r-package@v2

- name: Test coverage
if: ${{ !cancelled() }}
run: |
cov <- covr::package_coverage(
quiet = FALSE,
Expand All @@ -39,7 +48,7 @@ jobs:
shell: Rscript {0}

- name: Create Junit Report
if: always()
if: ${{ !cancelled() }}
run: |
test_out <- path.expand(file.path(getwd(), "junit.xml"))
testthat::test_local(reporter = testthat::JunitReporter$new(test_out))
Expand Down Expand Up @@ -78,7 +87,3 @@ jobs:
name: coverage-test-failures
path: ${{ runner.temp }}/package

- name: R CMD Check examples
if: always()
uses: r-lib/actions/check-r-package@v2

0 comments on commit 7c70afe

Please sign in to comment.