Skip to content

Commit

Permalink
Update check.yaml (#173)
Browse files Browse the repository at this point in the history
* Update check.yaml

* test

* testthat

* linters_with_defaults

* review

* Update README.md

* Update check.yaml
  • Loading branch information
arkadiuszbeer authored Sep 6, 2022
1 parent 88e29b9 commit 0c32b06
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 34 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ on:
- ready_for_review
branches:
- main
- pre-release
push:
branches:
- main
- pre-release
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -72,3 +70,7 @@ jobs:
uses: insightsengineering/r.pkg.template/.github/workflows/style.yaml@main
with:
auto-update: true
grammar:
if: github.event_name == 'pull_request'
name: Grammar Check 🔤
uses: insightsengineering/r.pkg.template/.github/workflows/grammar.yaml@main
1 change: 0 additions & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ on:
- ready_for_review
branches:
- main
- pre-release
paths:
- "inst/templates/**"
- "_pkgdown.y[a]ml"
Expand Down
15 changes: 0 additions & 15 deletions .github/workflows/validate.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .lintr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
linters: with_defaults(
linters: linters_with_defaults(
line_length_linter = line_length_linter(120),
cyclocomp_linter = NULL,
object_usage_linter = NULL
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,17 @@ remotes::install_github("insightsengineering/teal.osprey@*release")
A stable release of all `NEST` packages from June 2022 is also available [here](https://github.com/insightsengineering/depository#readme).

In order to run many of the examples you will also need to install the [`scda`](https://insightsengineering.github.io/scda) package.

## Stargazers and Forkers

### Stargazers over time

[![Stargazers over time](https://starchart.cc/insightsengineering/teal.osprey.svg)](https://starchart.cc/insightsengineering/teal.osprey)

### Stargazers

[![Stargazers repo roster for @insightsengineering/teal.osprey](https://reporoster.com/stars/insightsengineering/teal.osprey)](https://github.com/insightsengineering/teal.osprey/stargazers)

### Forkers

[![Forkers repo roster for @insightsengineering/teal.osprey](https://reporoster.com/forks/insightsengineering/teal.osprey)](https://github.com/insightsengineering/teal.osprey/network/members)
2 changes: 2 additions & 0 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ qit
swimlane
ui
zhanc
repo
Forkers
17 changes: 2 additions & 15 deletions tests/testthat.R
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
pkg_name <- "teal.osprey"
if (requireNamespace("testthat", quietly = TRUE)) {
library(testthat)
is_on_ci <- isTRUE(as.logical(Sys.getenv("CI")))
if (is_on_ci) {
reporter <- MultiReporter$new(list(
CheckReporter$new(),
JunitReporter$new(file = "junit-result.xml")
))
test_results <- test_check(pkg_name, reporter = reporter)
saveRDS(test_results, "unit_testing_results.rds")
} else {
reporter <- ParallelProgressReporter$new()
test_check(pkg_name, reporter = reporter)
}
}
library(pkg_name, character.only = TRUE)
testthat::test_check(pkg_name)

0 comments on commit 0c32b06

Please sign in to comment.