From 3e4639ccf14ef587a738d464fd8e205130d126fa Mon Sep 17 00:00:00 2001 From: nkoenen Date: Wed, 20 Dec 2023 14:29:37 +0100 Subject: [PATCH] Update GitHub actions workflows --- .github/workflows/R-CMD-check.yaml | 10 ++-- .github/workflows/pr-commands.yaml | 79 ------------------------------ 2 files changed, 4 insertions(+), 85 deletions(-) delete mode 100644 .github/workflows/pr-commands.yaml diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 7cdb088..a4873f7 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -16,7 +16,7 @@ jobs: R-CMD-check: runs-on: ${{ matrix.config.os }} - name: ${{ matrix.config.os }} (tf-${{ matrix.config.tf }}, R-${{ matrix.config.r }}) + name: ${{ matrix.config.os }} (R-${{ matrix.config.r }}) strategy: fail-fast: false @@ -30,8 +30,6 @@ jobs: - {os: 'ubuntu-latest', r: 'release'} - {os: 'ubuntu-latest', r: 'oldrel-1'} - {os: 'ubuntu-latest', r: 'oldrel-2'} - - {os: 'ubuntu-latest', r: 'oldrel-3'} - - {os: 'ubuntu-latest', r: 'oldrel-4'} env: R_REMOTES_NO_ERRORS_FROM_WARNINGS: true @@ -39,8 +37,7 @@ jobs: TORCH_TEST: 1 TORCH_INSTALL: 1 TORCH_COMMIT_SHA: "none" - CC: gcc-14 - CXX: g++-14 + PYTORCH_ENABLE_MPS_FALLBACK: 1 steps: - uses: actions/checkout@v3 @@ -64,7 +61,7 @@ jobs: shell: Rscript {0} - name: Install Tensorflow + Keras deps - run: keras::install_keras(tensorflow = '${{ matrix.config.tf }}-cpu') + run: keras::install_keras(tensorflow = 'default-cpu') shell: Rscript {0} - name: Check if torch is installed @@ -80,4 +77,5 @@ jobs: - uses: r-lib/actions/check-r-package@v2 with: error-on: '"error"' + args: 'c("--no-multiarch", "--no-manual", "--as-cran")' upload-snapshots: true diff --git a/.github/workflows/pr-commands.yaml b/.github/workflows/pr-commands.yaml deleted file mode 100644 index 97271eb..0000000 --- a/.github/workflows/pr-commands.yaml +++ /dev/null @@ -1,79 +0,0 @@ -# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples -# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help -on: - issue_comment: - types: [created] - -name: Commands - -jobs: - document: - if: ${{ github.event.issue.pull_request && (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER') && startsWith(github.event.comment.body, '/document') }} - name: document - runs-on: ubuntu-latest - env: - GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} - steps: - - uses: actions/checkout@v2 - - - uses: r-lib/actions/pr-fetch@v2 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - - - uses: r-lib/actions/setup-r@v2 - with: - use-public-rspm: true - - - uses: r-lib/actions/setup-r-dependencies@v2 - with: - extra-packages: any::roxygen2 - needs: pr-document - - - name: Document - run: roxygen2::roxygenise() - shell: Rscript {0} - - - name: commit - run: | - git config --local user.name "$GITHUB_ACTOR" - git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com" - git add man/\* NAMESPACE - git commit -m 'Document' - - - uses: r-lib/actions/pr-push@v2 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - - style: - if: ${{ github.event.issue.pull_request && (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER') && startsWith(github.event.comment.body, '/style') }} - name: style - runs-on: ubuntu-latest - env: - GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} - steps: - - uses: actions/checkout@v2 - - - uses: r-lib/actions/pr-fetch@v2 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - - - uses: r-lib/actions/setup-r@v2 - - - name: Install dependencies - run: install.packages("styler") - shell: Rscript {0} - - - name: Style - run: styler::style_pkg() - shell: Rscript {0} - - - name: commit - run: | - git config --local user.name "$GITHUB_ACTOR" - git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com" - git add \*.R - git commit -m 'Style' - - - uses: r-lib/actions/pr-push@v2 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }}