From cc3ff4f4e6342393e6b9e650ce750cf0e520bfc3 Mon Sep 17 00:00:00 2001 From: mb706 Date: Wed, 28 Feb 2024 16:14:46 +0100 Subject: [PATCH] dev cmd check with paradox master --- ...md-check-paradox.yml => dev-cmd-check.yml} | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) rename .github/workflows/{r-cmd-check-paradox.yml => dev-cmd-check.yml} (73%) diff --git a/.github/workflows/r-cmd-check-paradox.yml b/.github/workflows/dev-cmd-check.yml similarity index 73% rename from .github/workflows/r-cmd-check-paradox.yml rename to .github/workflows/dev-cmd-check.yml index 98f0f48b..a839b224 100644 --- a/.github/workflows/r-cmd-check-paradox.yml +++ b/.github/workflows/dev-cmd-check.yml @@ -1,4 +1,5 @@ -# r cmd check workflow of the mlr3 ecosystem v0.1.0 +# Workflow sets WEKA_HOME and installs XMeans +# r cmd check workflow of the mlr3 ecosystem v0.3.1 # https://github.com/mlr-org/actions on: workflow_dispatch: @@ -15,16 +16,16 @@ on: branches: - main -name: r-cmd-check-paradox +name: dev-check env: WEKA_HOME: /home/runner/work/mlr3cluster jobs: - r-cmd-check: + check-package: runs-on: ${{ matrix.config.os }} - name: ${{ matrix.config.os }} (${{ matrix.config.r }}) + name: ${{ matrix.config.dev-package }} env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} @@ -33,14 +34,10 @@ jobs: fail-fast: false matrix: config: - - {os: ubuntu-latest, r: 'devel'} - - {os: ubuntu-latest, r: 'release'} + - {os: ubuntu-latest, r: 'release', dev-package: 'mlr-org/paradox'} steps: - - uses: actions/checkout@v3 - - - name: paradox - run: 'echo -e "Remotes:\n mlr-org/paradox@s3_params" >> DESCRIPTION' + - uses: actions/checkout@v4 - uses: r-lib/actions/setup-pandoc@v2 @@ -52,6 +49,7 @@ jobs: with: extra-packages: any::rcmdcheck needs: check + - uses: mxschmitt/action-tmate@v3 if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} with: @@ -62,4 +60,9 @@ jobs: RWeka::WPM("refresh-cache") RWeka::WPM("install-package", "XMeans") shell: Rscript {0} + + - name: Install dev versions + run: pak::pkg_install(c('${{ matrix.config.dev-package }}')) + shell: Rscript {0} + - uses: r-lib/actions/check-r-package@v2