diff --git a/.github/workflows/Vietnam.yaml b/.github/workflows/Vietnam.yaml deleted file mode 100644 index 1425587e..00000000 --- a/.github/workflows/Vietnam.yaml +++ /dev/null @@ -1,48 +0,0 @@ -on: - schedule: - - cron: '36 12 * * *' - workflow_dispatch: - -name: Vietnam - -jobs: - Vietnam: - runs-on: macOS-latest - env: - GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} - steps: - - uses: actions/checkout@v2 - - - uses: r-lib/actions/setup-r@v1 - - - name: Query dependencies - run: | - install.packages('remotes') - saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2) - writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version") - shell: Rscript {0} - - - name: Cache R packages - uses: actions/cache@v2 - with: - path: ${{ env.R_LIBS_USER }} - key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }} - restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1- - - - name: Install dependencies - run: | - install.packages(c("remotes")) - remotes::install_deps(dependencies = TRUE) - install.packages("devtools") - shell: Rscript {0} - - - name: Install package - run: R CMD INSTALL . - - - name: Test dataset - run: | - options("testDownload" = TRUE) - options("testSource" = "Vietnam") - devtools::load_all() - testthat::test_file("tests/testthat/test-regional-datasets.R", reporter = c("summary", "fail")) - shell: Rscript {0} diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 260abf76..0ae42e42 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -36,6 +36,11 @@ jobs: - name: Test coverage run: | - options("testRegions" = TRUE) - covr::codecov() + covr::codecov(function_exclusions = c( + "Belgium", "Brazil", "Canada", "Colombia", + "Covid19DataHub", "Cuba", "ECDC", "Estonia", + "France", "Germany", "Google", "India", "Italy", + "JHU", "JRC", "Lithuania", "Mexico", "Netherlands", + "SouthAfrica", "Switzerland", "UK", "USA", "WHO" + )) shell: Rscript {0}