Skip to content

Commit

Permalink
Update test_coverage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
realxinzhao authored Nov 7, 2023
1 parent afe904d commit 9ac302b
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions .github/workflows/test_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,26 @@ jobs:
GITHUB_PAT: ${{ secrets.GH_PAT}}

steps:
- uses: actions/checkout@v1
- uses: r-lib/actions/setup-r@v2-branch
- name: Checkout code
uses: actions/checkout@v2

- name: Set up R
uses: r-lib/actions/setup-r@v1
with:
r-version: '3.6'
- uses: r-lib/actions/setup-pandoc@v2-branch
- uses: r-lib/actions/setup-tinytex@v2-branch
r-version: '4.1' # Specify your R version

- name: Set up pandoc
uses: r-lib/actions/setup-pandoc@v1

- name: Set up TinyTeX
uses: yihui/tinytex-action@v3

- name: Cache R packages
uses: actions/cache@v1
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: Cache R packages
uses: actions/cache@v2
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}
restore-keys: ${{ runner.os }}-

- name: Ubuntu config
run: |
Expand All @@ -42,6 +49,5 @@ jobs:

- name: Test coverage
run: |
remotes::install_cran("covr")
covr::codecov(token = "${{secrets.CODECOV_TOKEN}}")
shell: Rscript {0}
Rscript -e "remotes::install_cran('covr')"
Rscript -e "covr::codecov(token = Sys.getenv('CODECOV_TOKEN'))"

0 comments on commit 9ac302b

Please sign in to comment.