Skip to content

Commit

Permalink
Update testthat snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan committed Oct 23, 2023
1 parent c94d178 commit 16a17b0
Show file tree
Hide file tree
Showing 15 changed files with 62 additions and 118 deletions.
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ updates:
directory: "/" # Location of package manifests
schedule:
interval: "weekly"

1 change: 1 addition & 0 deletions .github/workflows/cff-validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ jobs:

- name: Validate CITATION.cff
uses: dieghernan/cff-validator@main

1 change: 1 addition & 0 deletions .github/workflows/check-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,4 @@ jobs:
needs: check

- uses: r-lib/actions/check-r-package@v2

7 changes: 4 additions & 3 deletions .github/workflows/cran-status.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@ on:
jobs:
check:
runs-on: ubuntu-latest
permissions: write-all
permissions: write-all
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Check
uses: dieghernan/cran-status-check@v1
with:
fail-on-error: "true"
create-issue: "false"
create-issue: "false"

2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ jobs:
with:
sarif_file: lintr-results.sarif
wait-for-processing: true

42 changes: 21 additions & 21 deletions .github/workflows/pkgcheck.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
name: pkgcheck

# This will cancel running jobs once a new run is triggered
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

on:
# Manually trigger the Action under Actions/pkgcheck
workflow_dispatch:

jobs:
pkgcheck:
runs-on: ubuntu-latest
steps:
- uses: ropensci-review-tools/pkgcheck-action@main
with:
summary-only: false
post-to-issue: true
append-to-issue: true
name: pkgcheck

# This will cancel running jobs once a new run is triggered
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

on:
# Manually trigger the Action under Actions/pkgcheck
workflow_dispatch:

jobs:
pkgcheck:
runs-on: ubuntu-latest
steps:
- uses: ropensci-review-tools/pkgcheck-action@main
with:
summary-only: false
post-to-issue: true
append-to-issue: true

7 changes: 4 additions & 3 deletions .github/workflows/revdepcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ jobs:
revdepcheck::revdep_reset()
revdepcheck::revdep_check(num_workers = 4)
revdepig <- c(
"checks", "library", "checks.noindex", "library.noindex",
"data.sqlite", "*.html" )
usethis::use_git_ignore(revdepig, directory = file.path(".", "revdep"))
# Ignore this also on build
Expand All @@ -60,3 +60,4 @@ jobs:
git add -A
git commit -m 'revdepcheck' || echo "No changes to commit"
git push origin || echo "No changes to commit"
1 change: 1 addition & 0 deletions .github/workflows/test-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,4 @@ jobs:
run: |
# OK :)
cat ./tests/testthat/test_ci/_snaps/full_cff.md >$GITHUB_STEP_SUMMARY
5 changes: 3 additions & 2 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ jobs:
needs: coverage

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

- name: Show testthat output
if: always()
run: |
Expand All @@ -48,3 +48,4 @@ jobs:
with:
name: coverage-test-failures
path: ${{ runner.temp }}/package

21 changes: 11 additions & 10 deletions .github/workflows/wipe-cache.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Clear GHA caches manually
on:
workflow_dispatch:

jobs:
cache-clear:
runs-on: ubuntu-latest

steps:
- uses: easimon/wipe-cache@main
name: Clear GHA caches manually
on:
workflow_dispatch:

jobs:
cache-clear:
runs-on: ubuntu-latest

steps:
- uses: easimon/wipe-cache@main

84 changes: 10 additions & 74 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ file and the `CITATION` file (if present) of your package. Note that
**cffr** works best if your package pass
`R CMD check/devtools::check()`.

As per 2023-08-23 there are at least 210 repos on GitHub using **cffr**.
As per 2023-10-23 there are at least 320 repos on GitHub using **cffr**.
[Check them out
here](https://github.com/search?q=cffr%20path%3A**%2FCITATION.cff&type=code).

Expand Down Expand Up @@ -143,7 +143,7 @@ test <- cff_create("rmarkdown")
type: software
license: GPL-3.0-only
title: 'rmarkdown: Dynamic Documents for R'
version: '2.24'
version: '2.25'
abstract: Convert R Markdown documents into a variety of formats.
authors:
- family-names: Allaire
Expand Down Expand Up @@ -221,12 +221,12 @@ test <- cff_create("rmarkdown")
email: [email protected]
orcid: https://orcid.org/0000-0003-3925-190X
year: '2023'
notes: R package version 2.24
notes: R package version 2.25
url: https://github.com/rstudio/rmarkdown
repository: https://CRAN.R-project.org/package=rmarkdown
repository-code: https://github.com/rstudio/rmarkdown
url: https://pkgs.rstudio.com/rmarkdown/
date-released: '2023-08-14'
date-released: '2023-09-18'
contact:
- family-names: Xie
given-names: Yihui
Expand Down Expand Up @@ -565,25 +565,6 @@ test <- cff_create("rmarkdown")
- family-names: Attali.
given-names: Dean
year: '2023'
- type: software
title: dygraphs
abstract: 'dygraphs: Interface to ''Dygraphs'' Interactive Time Series Charting
Library'
notes: Suggests
url: https://github.com/rstudio/dygraphs
repository: https://CRAN.R-project.org/package=dygraphs
authors:
- family-names: Vanderkam
given-names: Dan
- family-names: Allaire
given-names: JJ
- family-names: Owen
given-names: Jonathan
- family-names: Gromer
given-names: Daniel
- family-names: Thieurmel
given-names: Benoit
year: '2023'
- type: software
title: fs
abstract: 'fs: Cross-Platform File System Operations Based on ''libuv'''
Expand All @@ -600,26 +581,6 @@ test <- cff_create("rmarkdown")
given-names: Gábor
email: [email protected]
year: '2023'
- type: software
title: rsconnect
abstract: 'rsconnect: Deploy Docs, Apps, and APIs to ''Posit Connect'', ''shinyapps.io'',
and ''RPubs'''
notes: Suggests
url: https://github.com/rstudio/rsconnect
repository: https://CRAN.R-project.org/package=rsconnect
authors:
- family-names: Atkins
given-names: Aron
email: [email protected]
- family-names: Allen
given-names: Toph
- family-names: Wickham
given-names: Hadley
- family-names: McPherson
given-names: Jonathan
- family-names: Allaire
given-names: JJ
year: '2023'
- type: software
title: downlit
abstract: 'downlit: Syntax Highlighting and Automatic Linking'
Expand All @@ -632,19 +593,6 @@ test <- cff_create("rmarkdown")
email: [email protected]
year: '2023'
version: '>= 0.4.0'
- type: software
title: katex
abstract: 'katex: Rendering Math to HTML, ''MathML'', or R-Documentation Format'
notes: Suggests
url: https://docs.ropensci.org/katex/
repository: https://CRAN.R-project.org/package=katex
authors:
- family-names: Ooms
given-names: Jeroen
email: [email protected]
orcid: https://orcid.org/0000-0002-4035-0289
year: '2023'
version: '>= 1.4.0'
- type: software
title: sass
abstract: 'sass: Syntactically Awesome Style Sheets (''Sass'')'
Expand Down Expand Up @@ -755,18 +703,6 @@ test <- cff_create("rmarkdown")
given-names: Davis
email: [email protected]
year: '2023'
- type: software
title: cleanrmd
abstract: 'cleanrmd: Clean Class-Less ''R Markdown'' HTML Documents'
notes: Suggests
url: https://pkg.garrickadenbuie.com/cleanrmd/
repository: https://CRAN.R-project.org/package=cleanrmd
authors:
- family-names: Aden-Buie
given-names: Garrick
email: [email protected]
orcid: https://orcid.org/0000-0002-7111-0077
year: '2023'
- type: software
title: withr
abstract: 'withr: Run Code ''With'' Temporarily Modified Global State'
Expand All @@ -778,7 +714,7 @@ test <- cff_create("rmarkdown")
given-names: Jim
- family-names: Henry
given-names: Lionel
email: lionel@rstudio.com
email: lionel@posit.co
- family-names: Müller
given-names: Kirill
email: [email protected]
Expand Down Expand Up @@ -905,9 +841,9 @@ for more info.

<div id="ref-codemeta" class="csl-entry">

Boettiger, Carl, and Maëlle Salmon. 2021a. *<span
class="nocase">codemeta</span>: A Smaller <span
class="nocase">codemetar</span> Package*.
Boettiger, Carl, and Maëlle Salmon. 2021a.
*<span class="nocase">codemeta</span>: A Smaller
<span class="nocase">codemetar</span> Package*.
<https://CRAN.R-project.org/package=codemeta>.

</div>
Expand All @@ -928,8 +864,8 @@ Among Citation Formats*.

<div id="ref-citation22" class="csl-entry">

Dietrich, Jan Philipp, and Waldir Leoncio. 2022. *<span
class="nocase">citation</span>: Software Citation Tools*.
Dietrich, Jan Philipp, and Waldir Leoncio. 2022.
*<span class="nocase">citation</span>: Software Citation Tools*.

</div>

Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
},
"isPartOf": "https://ropensci.org",
"keywords": ["attribution", "citation", "credit", "citation-files", "cff", "metadata", "r", "r-package", "citation-file-format", "rstats", "ropensci", "cran"],
"fileSize": "906.692KB",
"fileSize": "904.547KB",
"citation": [
{
"@type": "ScholarlyArticle",
Expand Down
Binary file modified data/cran_to_spdx.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion pkgdown/_pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ authors:
href: 'https://github.com/zambujo/'
Scott Chamberlain:
href: 'https://scottchamberlain.info/'

4 changes: 2 additions & 2 deletions tests/testthat/_snaps/cff_validate.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ok <- cff_validate(fcff)
Output
== Validating cff ==============================================================
Message <cliMessage>
Message
v Congratulations! This <cff> is valid

# Validate error CITATION.cff
Expand All @@ -13,7 +13,7 @@
tab <- cff_validate(ferr)
Output
== Validating cff ==============================================================
Message <cliMessage>
Message
x Oops! This <cff> has the following errors:
* cff: has additional properties
* cff.authors.0: no schemas match
Expand Down

0 comments on commit 16a17b0

Please sign in to comment.