Skip to content

Commit 0044669

Browse files
authored
ci: revdep check (#1450)
* ci: revdep check * ... * ... * ...
1 parent 1c36b77 commit 0044669

File tree

2 files changed

+87
-63
lines changed

2 files changed

+87
-63
lines changed

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

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

.github/workflows/revdep-check.yml

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

0 commit comments

Comments
 (0)