diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 188f5347..056cd57e 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -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 @@ -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, @@ -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)) @@ -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 -