3333 types :
3434 - checks_requested
3535 schedule :
36- - cron : " 10 0 * * *"
36+ - cron : " 10 1 * * *"
3737
3838concurrency :
3939 group : ${{ github.workflow }}-${{ github.ref }}-${{ inputs.ref || github.head_ref || github.sha }}-${{ github.base_ref || '' }}
@@ -44,13 +44,18 @@ name: rcc
4444jobs :
4545 rcc-smoke :
4646 runs-on : ubuntu-24.04
47+ permissions :
48+ contents : write
4749 outputs :
4850 sha : ${{ steps.commit.outputs.sha }}
4951 versions-matrix : ${{ steps.versions-matrix.outputs.matrix }}
5052 dep-suggests-matrix : ${{ steps.dep-suggests-matrix.outputs.matrix }}
5153
5254 name : " Smoke test: stock R"
5355
56+ permissions :
57+ contents : write
58+
5459 # Begin custom: services
5560 # End custom: services
5661
@@ -104,18 +109,19 @@ jobs:
104109 with :
105110 token : ${{ secrets.GITHUB_TOKEN }}
106111 cache-version : rcc-smoke-2
107- needs : check, website
112+ needs : build, check, website
108113 # Beware of using dev pkgdown here, has brought in dev dependencies in the past
109114 extra-packages : any::rcmdcheck r-lib/roxygen2 any::decor r-lib/styler r-lib/pkgdown deps::.
110115
116+ - uses : ./.github/workflows/custom/after-install
117+ if : hashFiles('.github/workflows/custom/after-install/action.yml') != ''
118+
119+ # Must come after the custom after-install workflow
111120 - name : Install package
112121 run : |
113122 _R_SHLIB_STRIP_=true R CMD INSTALL .
114123 shell : bash
115124
116- - uses : ./.github/workflows/custom/after-install
117- if : hashFiles('.github/workflows/custom/after-install/action.yml') != ''
118-
119125 - id : versions-matrix
120126 # Only run for pull requests if the base repo is different from the head repo, not for workflow_dispatch if not requested, always run for other events
121127 if : (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository) && (github.event_name != 'workflow_dispatch' || inputs.versions-matrix)
@@ -255,7 +261,7 @@ jobs:
255261 r-version : ${{ matrix.r }}
256262 cache-version : rcc-full-1
257263 token : ${{ secrets.GITHUB_TOKEN }}
258- needs : check
264+ needs : build, check
259265
260266 - uses : ./.github/workflows/custom/after-install
261267 if : hashFiles('.github/workflows/custom/after-install/action.yml') != ''
@@ -264,9 +270,15 @@ jobs:
264270 if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
265271
266272 - uses : ./.github/workflows/check
273+ if : ${{ ! matrix.covr }}
267274 with :
268275 results : ${{ runner.os }}-r${{ matrix.r }}
269276
277+ - uses : ./.github/workflows/covr
278+ if : ${{ matrix.covr }}
279+ with :
280+ token : ${{ secrets.CODECOV_TOKEN }}
281+
270282# The status update is taken care of by R-CMD-check-status.yaml
271283
272284 rcc-suggests :
@@ -295,7 +307,7 @@ jobs:
295307 - uses : ./.github/workflows/install
296308 with :
297309 cache-version : rcc-dev-${{ matrix.package }}-1
298- needs : check
310+ needs : build, check
299311 extra-packages : " any::rcmdcheck any::remotes ."
300312 token : ${{ secrets.GITHUB_TOKEN }}
301313
0 commit comments