Skip to content
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

Upkeep - improve messages + CI #299

Merged
merged 17 commits into from
Aug 8, 2024
Merged

Upkeep - improve messages + CI #299

merged 17 commits into from
Aug 8, 2024

Conversation

olivroy
Copy link
Contributor

@olivroy olivroy commented Jun 11, 2024

Tests won't pass because of #298

Fixes #295

Otherwise, use cli for messaging

  • use testthat 3rd edition (use snapshot test for message validation + other lints)

  • Update gh actions with usethis::use_github_action()

  • Update pkgdown to use bootstrap 5 (adds a search bar)

  • FIx a tidyselect deprecation warning

  • Make format_*() functions redundant (no longer used in the package)

Happy to answer any questions you may have!

cli has the advantage of detecting automatically if it should do ansi output and fallbacks otherwise. This means that if you are using RStudio (or a terminal that supports links), test output is now clickable (as you can see, I was able to get rid of setup.R and teardown.R

R CMD CHECK passes cleanly locally except for the test failure

@olivroy olivroy changed the title Upkeep Upkeep - improve messages + CI Jun 11, 2024
@gmyenni
Copy link
Collaborator

gmyenni commented Aug 5, 2024

Thanks @olivroy ! Can you rerun?

@olivroy
Copy link
Contributor Author

olivroy commented Aug 5, 2024

You can accept workflow run to see if everything works! I will also run locally

@olivroy
Copy link
Contributor Author

olivroy commented Aug 5, 2024

@gmyenni I can confirm that everything passes cleanly on my end locally. Can't reproduce the failures encountered on CI.

@olivroy
Copy link
Contributor Author

olivroy commented Aug 6, 2024

@gmyenni I just noticed that you weren't testing on macOS before. I will revert that change. I still don't know what is causing the R-devel problem, but it is unrelated to this PR.

@olivroy
Copy link
Contributor Author

olivroy commented Aug 8, 2024

For the R-devel checks to pass, I suspect we need 049f67c and 761423b from #302 to be added

@henrykironde
Copy link
Contributor

I will merge these changes and we solve the na.strings = c("", "NA"), in a new PR

@henrykironde henrykironde merged commit 560de90 into weecology:main Aug 8, 2024
5 of 6 checks passed
@olivroy
Copy link
Contributor Author

olivroy commented Aug 8, 2024

@henrykironde there may be one other action required from you regarding the test-coverage action. codecov now requires a token to be set. You can set a repo or organization token by following the instructions here

r-lib/actions#834

@olivroy olivroy deleted the dep branch August 8, 2024 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants