Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
hbaniecki committed Feb 19, 2023
1 parent 8b97f30 commit d705dd3
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 19 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ jobs:
matrix:
config:
- {os: windows-latest, r: 'devel'}
- {os: macOS-latest, r: '4.2'}
- {os: macOS-latest, r: '4.1'}
- {os: macOS-latest, r: '4.0'}
- {os: macOS-latest, r: '3.6'}
- {os: windows-latest, r: '4.2'}
- {os: windows-latest, r: '4.1'}
- {os: windows-latest, r: '4.0'}
- {os: windows-latest, r: '3.6'} # xgboost fails
- {os: ubuntu-18.04, r: '4.1'} # , vdiffr: true, xref: true, rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
- {os: ubuntu-18.04, r: '4.0'} # , vdiffr: true, xref: true, rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
- {os: ubuntu-latest, r: '4.2'}
- {os: ubuntu-latest, r: '4.1'} # , vdiffr: true, xref: true, rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
- {os: ubuntu-18.04, r: '3.6'} # , vdiffr: true, xref: true, rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}

env:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@master
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- uses: r-lib/actions/setup-pandoc@master
- uses: r-lib/actions/setup-pandoc@v2

- name: Query dependencies
run: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/pr-commands.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/pr-fetch@master
- uses: r-lib/actions/pr-fetch@f2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: r-lib/actions/setup-r@master
- uses: r-lib/actions/setup-r@v2
- name: Install dependencies
run: Rscript -e 'install.packages(c("remotes", "roxygen2"))' -e 'remotes::install_deps(dependencies = TRUE)'
- name: Document
Expand All @@ -21,7 +21,7 @@ jobs:
run: |
git add man/\* NAMESPACE
git commit -m 'Document'
- uses: r-lib/actions/pr-push@master
- uses: r-lib/actions/pr-push@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
style:
Expand All @@ -30,10 +30,10 @@ jobs:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/pr-fetch@master
- uses: r-lib/actions/pr-fetch@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: r-lib/actions/setup-r@master
- uses: r-lib/actions/setup-r@v2
- name: Install dependencies
run: Rscript -e 'install.packages("styler")'
- name: Style
Expand All @@ -42,7 +42,7 @@ jobs:
run: |
git add \*.R
git commit -m 'Style'
- uses: r-lib/actions/pr-push@master
- uses: r-lib/actions/pr-push@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# A mock job just to ensure we have a successful build status
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@master
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- uses: r-lib/actions/setup-pandoc@master
- uses: r-lib/actions/setup-pandoc@v2

- name: Query dependencies
run: |
Expand Down
7 changes: 2 additions & 5 deletions R/modelStudio.R
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,8 @@ modelStudio.explainer <- function(explainer,
loss_function <- DALEX::loss_root_mean_square
}
} else {
if (package_version(packageVersion("DALEX")) < package_version("2.5.0")) {
loss_function <- DALEX::loss_default(explainer$model_info$type)
} else {
loss_function <- DALEX::get_loss_default(explainer$model_info$type)
}
# suppress a warning coming from DALEX v2.5.0
loss_function <- suppressWarnings(DALEX::loss_default(explainer$model_info$type))
}

variable_splits_type <- ifelse('variable_splits_type' %in% kwargs_names,
Expand Down

0 comments on commit d705dd3

Please sign in to comment.