Skip to content

Commit

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

* testing

* no req. for xml2

* test

* Update testthat.R

* Update testthat.R

* [skip actions] Restyle files

* Update check.yaml

* [skip actions] Roxygen Man Pages Auto Update

* linters_with_defaults

* review

* Update README.md

* Update check.yaml

* Update check.yaml

* Update check.yaml

* Update check.yaml

* Update README.md

Co-authored-by: Dinakar <[email protected]>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: 27856297+dependabot-preview[bot]@users.noreply.github.com <27856297+dependabot-preview[bot]@users.noreply.github.com>
  • Loading branch information
4 people authored Sep 12, 2022
1 parent f1ddec7 commit bd286c8
Show file tree
Hide file tree
Showing 7 changed files with 21 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 @@ -71,3 +69,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
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,15 @@ See package vignettes `browseVignettes(package = "tern")` for usage of this pack
## Acknowledgment

This package is a result of a joint efforts by many developers and stakeholders. We would like to thank everyone who contributed so far!

## Stargazers and Forkers

### Stargazers over time

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

### Stargazers

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

[![Forkers repo roster for @insightsengineering/tern](https://reporoster.com/forks/insightsengineering/tern)](https://github.com/insightsengineering/tern/network/members)
2 changes: 2 additions & 0 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,5 @@ wilson
wilsoncc
wojciak
wojciech
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 <- "tern"
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(testthat)
test_check(pkg_name, reporter = ParallelProgressReporter$new())

0 comments on commit bd286c8

Please sign in to comment.