Skip to content

Commit

Permalink
Change ubuntu runner for GHA (#363)
Browse files Browse the repository at this point in the history
* .

* changing to ubuntu-20.04

as suggested here actions/runner-images#7188 (memory issue???)

* ubuntu-latest -> ubuntu-20.04

Seems to work to move to a different runner. If this passes, I will merge
  • Loading branch information
martinju authored Sep 2, 2023
1 parent 25f207d commit dd2bb69
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 10 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 01.09.23: Moved from ubuntu-latest to ubuntu-20.04 to avoid actions being cancelled
# This is potentially due to CPU quota being exceeded as suggested
# here: https://github.com/actions/runner-images/issues/6680 and
# here: https://github.com/actions/runner-images/discussions/7188)

# July 5th, 2022: This is a modifided version of the 'check-standard' version from
# https://github.com/r-lib/actions/tree/v2/examples#standard-ci-workflow

Expand All @@ -8,6 +13,7 @@
# 3. R CMD check is performed WITHOUT the default as-cran flag. This allows snapshots to run without setting
# as-cran=TRUE in every single call to expect_snapshot


# 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

Expand All @@ -31,10 +37,10 @@ jobs:
config:
- {os: macOS-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}
- {os: ubuntu-latest, r: 'oldrel-2'}
- {os: ubuntu-20.04, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-20.04, r: 'release'}
- {os: ubuntu-20.04, r: 'oldrel-1'}
- {os: ubuntu-20.04, r: 'oldrel-2'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/lint-changed-files.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 01.09.23: Moved from ubuntu-latest to ubuntu-20.04 to avoid actions being cancelled
# This is potentially due to CPU quota being exceeded as suggested
# here: https://github.com/actions/runner-images/issues/6680 and
# here: https://github.com/actions/runner-images/discussions/7188)


# 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:
Expand All @@ -8,7 +14,7 @@ name: lint-changed-files

jobs:
lint-changed-files:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 01.09.23: Moved from ubuntu-latest to ubuntu-20.04 to avoid actions being cancelled
# This is potentially due to CPU quota being exceeded as suggested
# here: https://github.com/actions/runner-images/issues/6680 and
# here: https://github.com/actions/runner-images/discussions/7188)


# 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:
Expand All @@ -10,7 +16,7 @@ name: lint

jobs:
lint:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 01.09.23: Moved from ubuntu-latest to ubuntu-20.04 to avoid actions being cancelled
# This is potentially due to CPU quota being exceeded as suggested
# here: https://github.com/actions/runner-images/issues/6680 and
# here: https://github.com/actions/runner-images/discussions/7188)


# 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:
Expand All @@ -13,7 +19,7 @@ name: pkgdown

jobs:
pkgdown:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/pr-commands.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 01.09.23: Moved from ubuntu-latest to ubuntu-20.04 to avoid actions being cancelled
# This is potentially due to CPU quota being exceeded as suggested
# here: https://github.com/actions/runner-images/issues/6680 and
# here: https://github.com/actions/runner-images/discussions/7188)


# 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:
Expand All @@ -10,7 +16,7 @@ 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
runs-on: ubuntu-20.04
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/remove-old-artifacts.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 01.09.23: Moved from ubuntu-latest to ubuntu-20.04 to avoid actions being cancelled
# This is potentially due to CPU quota being exceeded as suggested
# here: https://github.com/actions/runner-images/issues/6680 and
# here: https://github.com/actions/runner-images/discussions/7188)


name: Remove old artifacts

on:
Expand All @@ -7,7 +13,7 @@ on:

jobs:
remove-old-artifacts:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
timeout-minutes: 10

steps:
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# shapr (development version)
# shapr (development version)

* Release a Python wrapper (`shaprpyr`, [#325](https://github.com/NorskRegnesentral/shapr/pull/325)) for explaining predictions from Python models (from Python) utilizing almost all functionality of `shapr`. The wrapper moves back and forth back and forth between Python and R, doing the prediction in Python, and almost everything else in R. This simplifies maintenance of `shaprpy` significantly. The wrapper is available [here](https://github.com/NorskRegnesentral/shapr/tree/master/python).
* Complete restructuring motivated by introducing the Python wrapper. The restructuring splits the explanation tasks into smaller pieces, which was necessary to allow the Python wrapper to move back and forth between R and Python.
Expand Down

0 comments on commit dd2bb69

Please sign in to comment.