-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.Rmd
62 lines (42 loc) · 2.42 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# extratests
<!-- badges: start -->
[![R build status - CRAN installs](https://github.com/tidymodels/extratests/workflows/CRAN-R-CMD-check/badge.svg)](https://github.com/tidymodels/extratests/actions)
[![R build status - GH installs](https://github.com/tidymodels/extratests/workflows/GH-R-CMD-check/badge.svg)](https://github.com/tidymodels/extratests/actions)
[![R build status - Spark](https://github.com/tidymodels/extratests/workflows/spark-R-CMD-check/badge.svg)](https://github.com/tidymodels/extratests/actions)
<!-- badges: end -->
`extratests` is an internal package used for tests that
* Depend on multiple tidymodels packages
* Involve special/extra packages.
* Whose run-time is not practical for individual packages.
These tests are run on a cron job and are run for both CRAN versions and the current GitHub development versions.
## PR-pairs with package repos
PRs on extratests typically are part of a PR pair since they test changes in package repositories. The following workflow ensures that the CI run triggered by the PR on extratests runs with the changes in the corresponding PR on the package repository.
Normal development
* [pkg repo] Make changes
* [extratests repo] Write tests
Set version for the change
* [pkg repo] Give it new dev version number in DESCRIPTION, e.g. `1.1.0.9001` instead of `1.1.0.9000`
* [extratests repo] Add `skip_if_not_installed()` to the tests with that dev version number as `minimum_version`.
Open PRs and point GHA to the changes
* [pkg repo] Make a PR
* [extratests repo] in `GH-R-CMD-check.yaml`, point GHA to the pkg PR by appending `#<PR number>`, e.g. `try(pak::pkg_install("tidymodels/parsnip#991"))`
* Without pointing GHA to that branch, the tests will be skipped based on the version number.
* If the branch information is added to the DESCRIPTION via `Remotes:` instead, the "CRAN workflow" will also run the dev version.
* [extratests repo] Make a PR, link it to the pkg-PR in the PR description
* [extratests repo] Make a review comment to change remote back to main before merging
Clean-up and merge (after PR review and approval)
* [pkg repo] Merge PR
* [extratests repo] Point remote back to main
* [extratests repo] Merge PR