-
-
Notifications
You must be signed in to change notification settings - Fork 5
88 lines (74 loc) · 2.27 KB
/
Copy pathrevdep-check.yml
File metadata and controls
88 lines (74 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Reverse dependency check workflow for the mlr3 ecosystem (v0.2.0)
# To check a different target package, change `TARGET_PKG_DIR` in `jobs.revdep-check.env`.
# To check different reverse dependencies (for example, mlr3tuning), update `strategy.matrix.include`.
# You can remove the `services.redis` section if the package does not require `rush` for the tests
# Source: https://github.com/mlr-org/actions
on:
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: 'Run the build with tmate debugging enabled'
required: false
default: false
push:
branches:
- main
pull_request:
branches:
- main
name: revdep-check
jobs:
revdep-check:
runs-on: ubuntu-latest
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
name: ${{ matrix.package }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
RUSH_TEST_USE_REDIS: true
TARGET_PKG_DIR: rush
strategy:
fail-fast: false
matrix:
include:
- {package: mlr-org/xplainfi, ref: main}
- {package: mlr-org/mlr3viz, ref: main}
steps:
- uses: actions/checkout@v6
with:
path: ${{ env.TARGET_PKG_DIR }}
- uses: actions/checkout@v6
with:
repository: ${{ matrix.package }}
ref: ${{ matrix.ref }}
path: revdep-pkg
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
r-version: release
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check
working-directory: revdep-pkg
- name: Install target package from source
run: R CMD INSTALL "${{ env.TARGET_PKG_DIR }}"
shell: bash
- uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
with:
limit-access-to-actor: true
- uses: r-lib/actions/check-r-package@v2
with:
args: 'c("--no-manual")'
working-directory: revdep-pkg
error-on: '"note"'