-
Notifications
You must be signed in to change notification settings - Fork 218
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
Add working-directory
input to setup-r-dependencies
#441
Conversation
Codecov Report
@@ Coverage Diff @@
## master #441 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 1 1
=========================================
Hits 1 1 Continue to review full report at Codecov.
|
This looks good, could you test it out and verify it does what you want? You can use
To reference your code in your test workflow. |
Hi Jim, I was wondering how to test these actions. It is good to know how to reference actions from other repos. I will report back (and most likely update the PR). |
Thanks for working on this! I think I have been able to simplify your implementation a bit (31c24cc), and it seems to be working in a test. https://github.com/jimhester/r-actions-test/runs/4268523360?check_suite_focus=true#step:4:397 Try it out on your repo and let me know! |
We had duplication due to a rebase
Thanks Jim, I agree your simplification is preferable. I was looking for some documentation on how paks::pkg_deps accepts a directory that is not the current directory. This line is key!
I can confirm that the change works on my repo! |
@TNonet, @jimhester, great to have this feature! The same approach could be potentially extended to other actions, like Not sure what good alternatives would be: pak calls the argument |
@riccardoporreca I agree that One thought that did come to mind is that devtools::install_github uses a parameter called library(devtools)
install_github("hazimehh/L0Learn", subdir="R") So I would want to offer https://github.com/USER_ORG/PKG_NAME/
├─ .github/workflows
│ # actions run from this directory in most cases, therefore requiring `package-subdir` input in R actions to properly test R package
├─ python/
│ ├─ PKG_NAME/ # containing py src files
│ ├─ setup.py
├─ R/
│ ├─ DESCRIPTION
│ ├─ R/ # containing R src files
│ ├─ ...
├─ OTHER_LANGS/
├─ ...
|
I think working directory seems reasonable, as you are specifying the working directory for the custom action. |
This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue and include a link to this pull request. |
This is my attempt to close #438.
Looking for comments and feedback.