Skip to content

Commit a59333c

Browse files
be-marcclaude
andauthored
ci: update workflows (#27)
* ci: update workflows Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * ci: add dependabot for github actions Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * update gitignore * ... --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 12291c7 commit a59333c

File tree

7 files changed

+129
-73
lines changed

7 files changed

+129
-73
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
^cspell.json$
2323
^CONTRIBUTING.md$
2424
^cran-comments\.md$
25+
^data-raw$
2526
^CRAN-SUBMISSION$
2627
^docs$
2728
^inst/extdata/.+\.R$

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# R CMD check workflow without suggested packages v0.4.0
2+
# Without `cache: false` packages can leak from the cache of the previous workflow runs
3+
# You can remove the `services.redis` section if the package does not require `rush` for the tests
4+
# https://github.com/mlr-org/actions
5+
on:
6+
workflow_dispatch:
7+
inputs:
8+
debug_enabled:
9+
type: boolean
10+
description: 'Run the build with tmate debugging enabled'
11+
required: false
12+
default: false
13+
push:
14+
branches:
15+
- main
16+
pull_request:
17+
branches:
18+
- main
19+
20+
name: no-suggest-cmd-check
21+
22+
jobs:
23+
no-suggest-cmd-check:
24+
runs-on: ${{ matrix.config.os }}
25+
services:
26+
redis:
27+
image: redis
28+
options: >-
29+
--health-cmd "redis-cli ping"
30+
--health-interval 10s
31+
--health-timeout 5s
32+
--health-retries 5
33+
ports:
34+
- 6379:6379
35+
36+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
37+
38+
env:
39+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
40+
RUSH_TEST_USE_REDIS: true
41+
42+
strategy:
43+
fail-fast: false
44+
matrix:
45+
config:
46+
- {os: ubuntu-latest, r: 'release'}
47+
48+
steps:
49+
- uses: actions/checkout@v6
50+
51+
- uses: r-lib/actions/setup-pandoc@v2
52+
53+
- uses: r-lib/actions/setup-r@v2
54+
with:
55+
r-version: ${{ matrix.config.r }}
56+
57+
- uses: r-lib/actions/setup-r-dependencies@v2
58+
with:
59+
extra-packages: |
60+
any::rcmdcheck
61+
any::testthat
62+
any::knitr
63+
any::rmarkdown
64+
needs: check
65+
dependencies: '"hard"'
66+
cache: false
67+
68+
- uses: mxschmitt/action-tmate@v3
69+
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
70+
with:
71+
limit-access-to-actor: true
72+
73+
- uses: r-lib/actions/check-r-package@v2
74+
with:
75+
args: 'c("--no-manual", "--as-cran")'

.github/workflows/pkgdown.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# pkgdown workflow of the mlr3 ecosystem v0.1.0
1+
# pkgdown workflow of the mlr3 ecosystem v0.2.0
2+
# You can remove the `services.redis` section if the package does not require `rush` for the tests
23
# https://github.com/mlr-org/actions
34
on:
45
push:
@@ -17,13 +18,26 @@ name: pkgdown
1718
jobs:
1819
pkgdown:
1920
runs-on: ubuntu-latest
21+
services:
22+
redis:
23+
image: redis
24+
options: >-
25+
--health-cmd "redis-cli ping"
26+
--health-interval 10s
27+
--health-timeout 5s
28+
--health-retries 5
29+
ports:
30+
- 6379:6379
31+
2032

2133
concurrency:
2234
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
35+
2336
env:
2437
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
38+
2539
steps:
26-
- uses: actions/checkout@v3
40+
- uses: actions/checkout@v6
2741

2842
- uses: r-lib/actions/setup-pandoc@v2
2943

@@ -44,7 +58,7 @@ jobs:
4458

4559
- name: Deploy
4660
if: github.event_name != 'pull_request'
47-
uses: JamesIves/github-pages-deploy-action@v4.4.1
61+
uses: JamesIves/github-pages-deploy-action@v4.8.0
4862
with:
4963
clean: false
5064
branch: gh-pages

.github/workflows/r-cmd-check.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1-
# r cmd check workflow of the mlr3 ecosystem v0.1.0
1+
# r cmd check workflow of the mlr3 ecosystem v0.6.0
2+
# You can remove the `services.redis` section if the package does not require `rush` for the tests
23
# https://github.com/mlr-org/actions
34
on:
45
workflow_dispatch:
6+
inputs:
7+
debug_enabled:
8+
type: boolean
9+
description: 'Run the build with tmate debugging enabled'
10+
required: false
11+
default: false
512
push:
613
branches:
714
- main
@@ -14,11 +21,22 @@ name: r-cmd-check
1421
jobs:
1522
r-cmd-check:
1623
runs-on: ${{ matrix.config.os }}
24+
services:
25+
redis:
26+
image: redis
27+
options: >-
28+
--health-cmd "redis-cli ping"
29+
--health-interval 10s
30+
--health-timeout 5s
31+
--health-retries 5
32+
ports:
33+
- 6379:6379
1734

1835
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
1936

2037
env:
2138
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
39+
RUSH_TEST_USE_REDIS: true
2240

2341
strategy:
2442
fail-fast: false
@@ -28,7 +46,9 @@ jobs:
2846
- {os: ubuntu-latest, r: 'release'}
2947

3048
steps:
31-
- uses: actions/checkout@v3
49+
- uses: actions/checkout@v6
50+
51+
- uses: r-lib/actions/setup-pandoc@v2
3252

3353
- uses: r-lib/actions/setup-r@v2
3454
with:
@@ -39,4 +59,12 @@ jobs:
3959
extra-packages: any::rcmdcheck
4060
needs: check
4161

62+
- uses: mxschmitt/action-tmate@v3
63+
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
64+
with:
65+
limit-access-to-actor: true
66+
4267
- uses: r-lib/actions/check-r-package@v2
68+
with:
69+
error-on: '"note"'
70+
args: 'c("--no-manual", "--as-cran")'

.pre-commit-config.yaml

Lines changed: 0 additions & 54 deletions
This file was deleted.

codecov.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)