Skip to content

Commit e992afd

Browse files
committed
New data collected at 2025-11-10_00-02-43
1 parent c5f164e commit e992afd

39 files changed

Lines changed: 357 additions & 95 deletions

github-actions/formattable/R-CMD-check-dev.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ on:
88
- "cran-*"
99
tags:
1010
- "v*"
11+
workflow_dispatch:
1112

1213
name: rcc dev
1314

1415
jobs:
1516
matrix:
16-
runs-on: ubuntu-22.04
17+
runs-on: ubuntu-24.04
1718
outputs:
1819
matrix: ${{ steps.set-matrix.outputs.matrix }}
1920

@@ -32,7 +33,7 @@ jobs:
3233
uses: ./.github/workflows/dep-matrix
3334

3435
check-matrix:
35-
runs-on: ubuntu-22.04
36+
runs-on: ubuntu-24.04
3637
needs: matrix
3738

3839
name: Check deps
@@ -50,7 +51,7 @@ jobs:
5051
echo $matrix | json2yaml
5152
5253
R-CMD-check-base:
53-
runs-on: ubuntu-22.04
54+
runs-on: ubuntu-24.04
5455

5556
name: base
5657

@@ -96,7 +97,7 @@ jobs:
9697
- matrix
9798
- R-CMD-check-base
9899

99-
runs-on: ubuntu-22.04
100+
runs-on: ubuntu-24.04
100101

101102
name: 'rcc-dev: ${{ matrix.package }}'
102103

github-actions/formattable/R-CMD-check.yaml

Lines changed: 48 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
- main
1111
- master
1212
- release
13+
- next
1314
- cran-*
1415
pull_request:
1516
branches:
@@ -29,6 +30,14 @@ on:
2930
description: "Create a matrix of suggested dependencies"
3031
type: boolean
3132
default: false
33+
run-rcc-full:
34+
description: "Run rcc-full job"
35+
type: boolean
36+
default: false
37+
run-rcc-suggests:
38+
description: "Run rcc-suggests job"
39+
type: boolean
40+
default: false
3241
merge_group:
3342
types:
3443
- checks_requested
@@ -67,17 +76,16 @@ jobs:
6776
ref: ${{ inputs.ref }}
6877

6978
- name: Update status for rcc
79+
if: github.actor != 'Copilot' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
7080
# FIXME: Wrap into action
71-
if: github.event_name == 'workflow_dispatch'
7281
env:
7382
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7483
run: |
84+
echo "Actor: ${{ github.actor }}"
85+
7586
# Check status of this workflow
7687
state="pending"
7788
sha=${{ inputs.ref }}
78-
if [ -z "${sha}" ]; then
79-
sha=${{ github.head_ref }}
80-
fi
8189
if [ -z "${sha}" ]; then
8290
sha=${{ github.sha }}
8391
fi
@@ -113,7 +121,7 @@ jobs:
113121
cache-version: rcc-smoke-2
114122
needs: build, check, website
115123
# Beware of using dev pkgdown here, has brought in dev dependencies in the past
116-
extra-packages: any::rcmdcheck r-lib/roxygen2 any::decor r-lib/styler r-lib/pkgdown deps::.
124+
extra-packages: any::rcmdcheck r-lib/roxygen2 any::decor r-lib/pkgdown deps::.
117125

118126
- uses: ./.github/workflows/custom/after-install
119127
if: hashFiles('.github/workflows/custom/after-install/action.yml') != ''
@@ -174,7 +182,7 @@ jobs:
174182

175183
- name: Update status for rcc
176184
# FIXME: Wrap into action
177-
if: always() && github.event_name == 'workflow_dispatch'
185+
if: always() && (github.actor != 'Copilot') && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
178186
env:
179187
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
180188
run: |
@@ -190,12 +198,42 @@ jobs:
190198
sha=${{ inputs.ref }}
191199
fi
192200
if [ -z "${sha}" ]; then
193-
sha=${{ github.head_ref }}
201+
sha=${{ github.sha }}
202+
fi
203+
sha=$(git rev-parse ${sha})
204+
205+
html_url=$(gh api \
206+
-H "Accept: application/vnd.github+json" \
207+
-H "X-GitHub-Api-Version: 2022-11-28" \
208+
repos/${{ github.repository }}/actions/runs/${{ github.run_id }} | jq -r .html_url)
209+
210+
description="${{ github.workflow }} / ${{ github.job }}"
211+
212+
gh api \
213+
--method POST \
214+
-H "Accept: application/vnd.github+json" \
215+
-H "X-GitHub-Api-Version: 2022-11-28" \
216+
repos/${{ github.repository }}/statuses/${sha} \
217+
-f "state=${state}" -f "target_url=${html_url}" -f "description=${description}" -f "context=rcc"
218+
shell: bash
219+
220+
- name: Update status for rcc (Copilot)
221+
# Update status directly when triggered by Copilot or bots, since they can't dispatch workflows
222+
if: always() && (github.actor == 'Copilot')
223+
env:
224+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
225+
run: |
226+
# Set status to success if job succeeded, failure otherwise
227+
if [ "${{ job.status }}" == "success" ]; then
228+
state="success"
229+
else
230+
state="failure"
194231
fi
232+
sha=${{ inputs.ref }}
195233
if [ -z "${sha}" ]; then
196234
sha=${{ github.sha }}
197235
fi
198-
sha=$(git rev-parse ${sha})
236+
sha=$(git rev-parse ${sha})
199237
200238
html_url=$(gh api \
201239
-H "Accept: application/vnd.github+json" \
@@ -239,7 +277,7 @@ jobs:
239277

240278
runs-on: ${{ matrix.os }}
241279

242-
if: ${{ needs.rcc-smoke.outputs.versions-matrix != '' }}
280+
if: ${{ needs.rcc-smoke.outputs.versions-matrix != '' && (github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.run-rcc-full)) }}
243281

244282
name: 'rcc: ${{ matrix.os }} (${{ matrix.r }}) ${{ matrix.desc }}'
245283

@@ -301,7 +339,7 @@ jobs:
301339

302340
runs-on: ubuntu-22.04
303341

304-
if: ${{ needs.rcc-smoke.outputs.dep-suggests-matrix != '' }}
342+
if: ${{ needs.rcc-smoke.outputs.dep-suggests-matrix != '' && (github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.run-rcc-suggests)) }}
305343

306344
name: Without ${{ matrix.package }}
307345

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: "Copilot Setup Steps"
2+
3+
# Automatically run the setup steps when they are changed to allow for easy validation, and
4+
# allow manual testing through the repository's "Actions" tab
5+
on:
6+
workflow_dispatch:
7+
push:
8+
paths:
9+
- .github/workflows/copilot-setup-steps.yml
10+
pull_request:
11+
paths:
12+
- .github/workflows/copilot-setup-steps.yml
13+
14+
jobs:
15+
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
16+
copilot-setup-steps:
17+
runs-on: ubuntu-latest
18+
19+
# Set the permissions to the lowest permissions possible needed for your steps.
20+
# Copilot will be given its own token for its operations.
21+
permissions:
22+
# If you want to clone the repository as part of your setup steps, for example to install dependencies, you'll need the `contents: read` permission. If you don't clone the repository in your setup steps, Copilot will do this for you automatically after the steps complete.
23+
contents: read
24+
25+
# You can define any steps you want, and they will run before the agent starts.
26+
# If you do not check out your code, Copilot will do this for you.
27+
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v5
30+
- uses: ./.github/workflows/custom/before-install
31+
if: hashFiles('.github/workflows/custom/before-install/action.yml') != ''
32+
33+
- uses: ./.github/workflows/install
34+
with:
35+
token: ${{ secrets.GITHUB_TOKEN }}
36+
cache-version: copilot
37+
needs: build, check, website
38+
# Beware of using dev pkgdown here, has brought in dev dependencies in the past
39+
extra-packages: any::rcmdcheck r-lib/roxygen2 any::decor r-lib/styler r-lib/pkgdown deps::.
40+
41+
- uses: ./.github/workflows/custom/after-install
42+
if: hashFiles('.github/workflows/custom/after-install/action.yml') != ''
43+
44+
# Must come after the custom after-install workflow
45+
- name: Install package
46+
run: |
47+
UserNM=true R CMD INSTALL . || true
48+
shell: bash
49+
50+
- name: Install air
51+
uses: posit-dev/setup-air@v1

github-actions/gmailr/R-CMD-check.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ on:
88
push:
99
branches: [main, master]
1010
pull_request:
11-
branches: [main, master]
1211

13-
name: R-CMD-check
12+
name: R-CMD-check.yaml
13+
14+
permissions: read-all
1415

1516
jobs:
1617
R-CMD-check:
@@ -25,24 +26,22 @@ jobs:
2526
- {os: macos-latest, r: 'release'}
2627

2728
- {os: windows-latest, r: 'release'}
28-
# Use 3.6 to trigger usage of RTools35
29-
- {os: windows-latest, r: '3.6'}
30-
# use 4.1 to check with rtools40's older compiler
31-
- {os: windows-latest, r: '4.1'}
32-
33-
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
34-
- {os: ubuntu-latest, r: 'release'}
35-
- {os: ubuntu-latest, r: 'oldrel-1'}
36-
- {os: ubuntu-latest, r: 'oldrel-2'}
37-
- {os: ubuntu-latest, r: 'oldrel-3'}
38-
- {os: ubuntu-latest, r: 'oldrel-4'}
29+
# use 4.0 or 4.1 to check with rtools40's older compiler
30+
- {os: windows-latest, r: 'oldrel-4'}
31+
32+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
33+
- {os: ubuntu-latest, r: 'release'}
34+
- {os: ubuntu-latest, r: 'oldrel-1'}
35+
- {os: ubuntu-latest, r: 'oldrel-2'}
36+
- {os: ubuntu-latest, r: 'oldrel-3'}
37+
- {os: ubuntu-latest, r: 'oldrel-4'}
3938

4039
env:
4140
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
4241
R_KEEP_PKG_SOURCE: yes
4342

4443
steps:
45-
- uses: actions/checkout@v3
44+
- uses: actions/checkout@v4
4645

4746
- uses: r-lib/actions/setup-pandoc@v2
4847

@@ -60,3 +59,4 @@ jobs:
6059
- uses: r-lib/actions/check-r-package@v2
6160
with:
6261
upload-snapshots: true
62+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Workflow derived from https://github.com/posit-dev/setup-air/tree/main/examples
2+
3+
on:
4+
# Using `pull_request_target` over `pull_request` for elevated `GITHUB_TOKEN`
5+
# privileges, otherwise we can't set `pull-requests: write` when the pull
6+
# request comes from a fork, which is our main use case (external contributors).
7+
#
8+
# `pull_request_target` runs in the context of the target branch (`main`, usually),
9+
# rather than in the context of the pull request like `pull_request` does. Due
10+
# to this, we must explicitly checkout `ref: ${{ github.event.pull_request.head.sha }}`.
11+
# This is typically frowned upon by GitHub, as it exposes you to potentially running
12+
# untrusted code in a context where you have elevated privileges, but they explicitly
13+
# call out the use case of reformatting and committing back / commenting on the PR
14+
# as a situation that should be safe (because we aren't actually running the untrusted
15+
# code, we are just treating it as passive data).
16+
# https://securitylab.github.com/resources/github-actions-preventing-pwn-requests/
17+
pull_request_target:
18+
19+
name: format-suggest.yaml
20+
21+
jobs:
22+
format-suggest:
23+
name: format-suggest
24+
runs-on: ubuntu-latest
25+
26+
permissions:
27+
# Required to push suggestion comments to the PR
28+
pull-requests: write
29+
30+
steps:
31+
- uses: actions/checkout@v4
32+
with:
33+
ref: ${{ github.event.pull_request.head.sha }}
34+
35+
- name: Install
36+
uses: posit-dev/setup-air@v1
37+
38+
- name: Format
39+
run: air format .
40+
41+
- name: Suggest
42+
uses: reviewdog/action-suggester@v1
43+
with:
44+
level: error
45+
fail_level: error
46+
tool_name: air

github-actions/gmailr/pkgdown.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ on:
44
push:
55
branches: [main, master]
66
pull_request:
7-
branches: [main, master]
87
release:
98
types: [published]
109
workflow_dispatch:
1110

12-
name: pkgdown
11+
name: pkgdown.yaml
12+
13+
permissions: read-all
1314

1415
jobs:
1516
pkgdown:
@@ -22,7 +23,7 @@ jobs:
2223
permissions:
2324
contents: write
2425
steps:
25-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
2627

2728
- uses: r-lib/actions/setup-pandoc@v2
2829

@@ -43,7 +44,7 @@ jobs:
4344

4445
- name: Deploy to GitHub pages 🚀
4546
if: github.event_name != 'pull_request'
46-
uses: JamesIves/github-pages-deploy-action@v4.4.1
47+
uses: JamesIves/github-pages-deploy-action@v4.5.0
4748
with:
4849
clean: false
4950
branch: gh-pages

0 commit comments

Comments
 (0)