From c03cbac2c14e340fe61540464b8a3614701a1e86 Mon Sep 17 00:00:00 2001 From: mb706 Date: Sun, 14 Jan 2024 22:47:55 +0100 Subject: [PATCH] workflow file --- .github/workflows/r-cmd-check-paradox.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/r-cmd-check-paradox.yml b/.github/workflows/r-cmd-check-paradox.yml index d797530d..98f0f48b 100644 --- a/.github/workflows/r-cmd-check-paradox.yml +++ b/.github/workflows/r-cmd-check-paradox.yml @@ -2,6 +2,12 @@ # 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 @@ -11,6 +17,9 @@ on: name: r-cmd-check-paradox +env: + WEKA_HOME: /home/runner/work/mlr3cluster + jobs: r-cmd-check: runs-on: ${{ matrix.config.os }} @@ -33,6 +42,8 @@ jobs: - name: paradox run: 'echo -e "Remotes:\n mlr-org/paradox@s3_params" >> DESCRIPTION' + - uses: r-lib/actions/setup-pandoc@v2 + - uses: r-lib/actions/setup-r@v2 with: r-version: ${{ matrix.config.r }} @@ -41,4 +52,14 @@ jobs: with: extra-packages: any::rcmdcheck needs: check + - uses: mxschmitt/action-tmate@v3 + if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} + with: + limit-access-to-actor: true + + - name: Install XMeans + run: | + RWeka::WPM("refresh-cache") + RWeka::WPM("install-package", "XMeans") + shell: Rscript {0} - uses: r-lib/actions/check-r-package@v2