https://github.com/tidymodels/extratests
Integration and other testing for tidymodels
https://github.com/tidymodels/extratests
Last synced: 2 months ago
JSON representation
Integration and other testing for tidymodels
- Host: GitHub
- URL: https://github.com/tidymodels/extratests
- Owner: tidymodels
- License: other
- Created: 2020-06-23T20:17:16.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-03-14T20:40:53.000Z (3 months ago)
- Last Synced: 2025-03-31T15:29:47.475Z (3 months ago)
- Language: R
- Homepage:
- Size: 2.89 MB
- Stars: 21
- Watchers: 3
- Forks: 1
- Open Issues: 12
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- jimsghstars - tidymodels/extratests - Integration and other testing for tidymodels (R)
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```# extratests
[](https://github.com/tidymodels/extratests/actions)
[](https://github.com/tidymodels/extratests/actions)
[](https://github.com/tidymodels/extratests/actions)`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 testsSet 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 `#`, 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 mergingClean-up and merge (after PR review and approval)
* [pkg repo] Merge PR
* [extratests repo] Point remote back to main
* [extratests repo] Merge PR