Skip to content

Commit

Permalink
Fix the R-CMD-check and add Quarto to render README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
danielvartan committed Oct 17, 2024
1 parent 85b6e2d commit 854581b
Show file tree
Hide file tree
Showing 40 changed files with 1,634 additions and 1,507 deletions.
4 changes: 3 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
^\.github$
^\.lintr$
^.quarto$
^\.Rproj\.user$
^_quarto\.yml$
^_pkgdown\.yml$
^CITATION\.cff$
^CODE_OF_CONDUCT\.md$
Expand All @@ -15,4 +17,4 @@
^man-roxygen$
^Meta$
^pkgdown$
^README\.Rmd$
^README\.qmd$
14 changes: 7 additions & 7 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ First of all, thanks for considering contributing to `lubritime`! 👍 It's peop

`lubritime` is an open source project, maintained by people who care. We are not directly funded to do so.

[repo]: https://github.com/giperbio/lubritime
[issues]: https://github.com/giperbio/lubritime/issues
[discussions]: https://github.com/giperbio/lubritime/discussions
[new_issue]: https://github.com/giperbio/lubritime/issues/new
[new_discussion]: https://github.com/giperbio/lubritime/discussions/new
[website]: https://giperbio.github.io/lubritime
[citation]: https://giperbio.github.io/lubritime/authors.html
[repo]: https://github.com/danielvartan/lubritime
[issues]: https://github.com/danielvartan/lubritime/issues
[discussions]: https://github.com/danielvartan/lubritime/discussions
[new_issue]: https://github.com/danielvartan/lubritime/issues/new
[new_discussion]: https://github.com/danielvartan/lubritime/discussions/new
[website]: https://danielvartan.github.io/lubritime
[citation]: https://danielvartan.github.io/lubritime/authors.html
[email]: mailto:[email protected]

## Code of conduct
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/check-standard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ on:
pull_request:
branches: [main, master]

name: R-CMD-check
name: R-CMD-check.yaml

permissions: read-all

jobs:
R-CMD-check:
Expand All @@ -29,7 +31,7 @@ jobs:
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

Expand All @@ -47,3 +49,4 @@ jobs:
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
10 changes: 7 additions & 3 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ on:
types: [published]
workflow_dispatch:

name: pkgdown
name: pkgdown.yaml

permissions: read-all

jobs:
pkgdown:
Expand All @@ -19,8 +21,10 @@ jobs:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

Expand All @@ -39,7 +43,7 @@ jobs:

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4.4.1
uses: JamesIves/github-pages-deploy-action@v4.5.0
with:
clean: false
branch: gh-pages
Expand Down
26 changes: 19 additions & 7 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ on:
pull_request:
branches: [main, master]

name: test-coverage
name: test-coverage.yaml

permissions: read-all

jobs:
test-coverage:
Expand All @@ -15,36 +17,46 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::covr
extra-packages: any::covr, any::xml2
needs: coverage

- name: Test coverage
run: |
covr::codecov(
cov <- covr::package_coverage(
quiet = FALSE,
clean = FALSE,
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
)
covr::to_cobertura(cov)
shell: Rscript {0}

- uses: codecov/codecov-action@v4
with:
# Fail if error if not on PR, or if on PR and token is given
fail_ci_if_error: ${{ github.event_name != 'pull_request' || secrets.CODECOV_TOKEN }}
file: ./cobertura.xml
plugin: noop
disable_search: true
token: ${{ secrets.CODECOV_TOKEN }}

- name: Show testthat output
if: always()
run: |
## --------------------------------------------------------------------
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
find '${{ runner.temp }}/package' -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash

- name: Upload test results
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage-test-failures
path: ${{ runner.temp }}/package
58 changes: 10 additions & 48 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,59 +1,21 @@
# Created by https://www.toptal.com/developers/gitignore/api/r
# Edit at https://www.toptal.com/developers/gitignore?templates=r
# See <https://git-scm.com/docs/gitignore> to learn more.

### R ###
# History files
.Rhistory
*.knit.md
.Rapp.history

# Session Data files
.RData

# User-specific files
.Renviron
.Rhistory
.Ruserdata
*.utf8.md

# Example code in package build process
*-Ex.R

# Output files from R CMD build
/*.tar.gz

# Output files from R CMD check
/*.Rcheck/

# RStudio files
.Rproj.user/

# produced vignettes
vignettes/*.html
vignettes/*.pdf

# OAuth2 token, see https://github.com/hadley/httr/releases/tag/v0.3
.httr-oauth

# knitr and R markdown default cache directories
*_cache/
/cache/

# Temporary files created by R markdown
*.utf8.md
*.knit.md

# R Environment Variables
.Renviron

# pkgdown site
docs/

# translation temp files
po/*~

### R.Bookdown Stack ###
# R package: bookdown caching files
/*_files/

# End of https://www.toptal.com/developers/gitignore/api/r

# Others
.archive/
pkgdown/
revdep/
vignettes/*.html
vignettes/*.pdf

/.quarto/
Loading

0 comments on commit 854581b

Please sign in to comment.