-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build vignettes and Include tests in Binary packages #40
Build vignettes and Include tests in Binary packages #40
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we change the step
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
error-on: 'c("error")'
to
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
args: 'c("--no-manual", "--as-cran", "--no-vignettes")'
build_args: 'c("--no-manual", "--no-build-vignettes")'
error-on: 'c("error")'
?
Because now vignettes are first built/checked in this step and then are rebuilt again in the next step.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s. also #34
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's better to make the process fail faster in case something is wrong in the vignette.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The question for me is what's the more often use case: vignettes contain errors, or vignettes contain no errors?
I think "vignettes contain no errors" would be mostly the case, because the vignettes are modified not as often as the code and ideally a developer should test a modified vignette locally before committing. And then having vignettes built/checked only once would save more time overall.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I agree and changed the workflow accordingly.
@Felixmil Also maybe you could address the issue Open-Systems-Pharmacology/OSPSuite-R#1477 in this PR? |
This was done in Open-Systems-Pharmacology/OSPSuite-R#1481 as a repo-specific setting. |
Great! 👍 |
closes Open-Systems-Pharmacology/OSPSuite-R#1479
closes Open-Systems-Pharmacology/OSPSuite-R#1478