Skip to content

Commit 71fa3a8

Browse files
authored
ci: new workflows (#77)
* ci: new workflows * ci: remove bbotk dev
1 parent 095e7f9 commit 71fa3a8

File tree

11 files changed

+138
-531
lines changed

11 files changed

+138
-531
lines changed

.Rbuildignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
^\.pre-commit-config\.yaml$
66
^\.lintr$
77
^\.github$
8-
^tic\.R$
98
^\.ccache$
109
^codemeta\.json$
1110
pkgdown
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# dev cmd check workflow of the mlr3 ecosystem v0.1.0
2+
# https://github.com/mlr-org/actions
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches:
10+
- main
11+
12+
name: dev-check
13+
14+
jobs:
15+
check-package:
16+
runs-on: ${{ matrix.config.os }}
17+
18+
name: ${{ matrix.config.dev-package }}
19+
20+
env:
21+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
22+
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
config:
27+
- {os: ubuntu-latest, r: 'release', dev-package: 'mlr-org/mlr3'}
28+
29+
steps:
30+
- uses: actions/checkout@v3
31+
32+
- uses: r-lib/actions/setup-r@v2
33+
with:
34+
r-version: ${{ matrix.config.r }}
35+
36+
- uses: r-lib/actions/setup-r-dependencies@v2
37+
with:
38+
extra-packages: any::rcmdcheck
39+
needs: check
40+
41+
- name: Install dev versions
42+
run: pak::pkg_install('${{ matrix.config.dev-package }}')
43+
shell: Rscript {0}
44+
45+
- uses: r-lib/actions/check-r-package@v2

.github/workflows/pkgdown.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# pkgdown workflow of the mlr3 ecosystem v0.1.0
2+
# https://github.com/mlr-org/actions
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
release:
11+
types:
12+
- published
13+
workflow_dispatch:
14+
15+
name: pkgdown
16+
17+
jobs:
18+
pkgdown:
19+
runs-on: ubuntu-latest
20+
21+
concurrency:
22+
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
23+
env:
24+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
25+
steps:
26+
- uses: actions/checkout@v3
27+
28+
- uses: r-lib/actions/setup-pandoc@v2
29+
30+
- uses: r-lib/actions/setup-r@v2
31+
32+
- uses: r-lib/actions/setup-r-dependencies@v2
33+
with:
34+
extra-packages: any::pkgdown, local::.
35+
needs: website
36+
37+
- name: Install template
38+
run: pak::pkg_install("mlr-org/mlr3pkgdowntemplate")
39+
shell: Rscript {0}
40+
41+
- name: Build site
42+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
43+
shell: Rscript {0}
44+
45+
- name: Deploy
46+
if: github.event_name != 'pull_request'
47+
uses: JamesIves/[email protected]
48+
with:
49+
clean: false
50+
branch: gh-pages
51+
folder: docs

.github/workflows/r-cmd-check.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# r cmd check workflow of the mlr3 ecosystem v0.1.0
2+
# https://github.com/mlr-org/actions
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches:
10+
- main
11+
12+
name: r-cmd-check
13+
14+
jobs:
15+
r-cmd-check:
16+
runs-on: ${{ matrix.config.os }}
17+
18+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
config:
24+
- {os: ubuntu-latest, r: 'devel'}
25+
- {os: ubuntu-latest, r: 'release'}
26+
27+
steps:
28+
- uses: actions/checkout@v3
29+
30+
- uses: r-lib/actions/setup-r@v2
31+
with:
32+
r-version: ${{ matrix.config.r }}
33+
34+
- uses: r-lib/actions/setup-r-dependencies@v2
35+
with:
36+
extra-packages: any::rcmdcheck
37+
needs: check
38+
39+
- uses: r-lib/actions/check-r-package@v2

.github/workflows/tic.yml

Lines changed: 0 additions & 114 deletions
This file was deleted.

.github/workflows/update-tic.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 0 additions & 40 deletions
This file was deleted.

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ options(datatable.print.class = FALSE, datatable.print.keys = FALSE)
1313

1414

1515
<!-- badges: start -->
16-
[![tic](https://github.com/mlr-org/mlr3spatial/workflows/tic/badge.svg?branch=main)](https://github.com/mlr-org/mlr3spatial/actions)
16+
[![r-cmd-check](https://github.com/mlr-org/mlr3spatial/actions/workflows/r-cmd-check.yml/badge.svg)](https://github.com/mlr-org/mlr3spatial/actions/workflows/r-cmd-check.yml)
1717
[![CRAN status](https://www.r-pkg.org/badges/version/mlr3spatial)](https://CRAN.R-project.org/package=mlr3spatial)
1818
[![StackOverflow](https://img.shields.io/badge/stackoverflow-mlr3-orange.svg)](https://stackoverflow.com/questions/tagged/mlr3)
1919
[![Mattermost](https://img.shields.io/badge/chat-mattermost-orange.svg)](https://lmmisld-lmu-stats-slds.srv.mwn.de/mlr_invite/)

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
# mlr3spatial
33

44
<!-- badges: start -->
5-
6-
[![tic](https://github.com/mlr-org/mlr3spatial/workflows/tic/badge.svg?branch=main)](https://github.com/mlr-org/mlr3spatial/actions)
5+
[![r-cmd-check](https://github.com/mlr-org/mlr3spatial/actions/workflows/r-cmd-check.yml/badge.svg)](https://github.com/mlr-org/mlr3spatial/actions/workflows/r-cmd-check.yml)
76
[![CRAN
87
status](https://www.r-pkg.org/badges/version/mlr3spatial)](https://CRAN.R-project.org/package=mlr3spatial)
98
[![StackOverflow](https://img.shields.io/badge/stackoverflow-mlr3-orange.svg)](https://stackoverflow.com/questions/tagged/mlr3)
@@ -77,7 +76,7 @@ task
7776
## 3: 732737.2 5692469
7877
## 4: 733169.3 5692777
7978
## 5: 732202.2 5692644
80-
## ---
79+
## ---
8180
## 93: 733018.7 5692342
8281
## 94: 732551.4 5692887
8382
## 95: 732520.4 5692589

0 commit comments

Comments
 (0)