Skip to content

dev-check

dev-check #21

Workflow file for this run

# r cmd check workflow of the mlr3 ecosystem v0.2.0
# https://github.com/mlr-org/actions
on:
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: false
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "0 13 * * 2"
name: dev-check
jobs:
check-package:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.dev-package }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
strategy:
fail-fast: false
matrix:
config:
- {os: ubuntu-latest, r: 'release', dev-package: 'mlr-org/paradox'}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
- name: Cache OpenML
uses: actions/cache@v3
id: openml-cache
with:
path: ~/openml
# we will just (almost) always get the cache from the restore keys
key: ${{ runner.os }}-openml-${{ hashFiles('.') }}
restore-keys: ${{ runner.os }}-openml-
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check
- name: Install dev versions
run: pak::pkg_install('${{ matrix.config.dev-package }}')
shell: Rscript {0}
- uses: r-lib/actions/check-r-package@v2
env:
TESTOPENMLAPIKEY: ${{ secrets.TESTOPENMLAPIKEY }}
- uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
with:
limit-access-to-actor: true