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

ci: run update-citation-cff action on PRs & use pre-commit hooks #21

Merged
merged 7 commits into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/update-citation-cff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
on:
release:
types: [published]
push:
pull_request:
branches: [master, main]
paths:
- .github/workflows/update-citation-cff.yaml
- DESCRIPTION
- inst/CITATION
workflow_dispatch:
Expand All @@ -23,12 +24,16 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
any::cffr
any::V8
any::docopt

- name: Update CITATION.cff
run: |
Expand All @@ -45,7 +50,10 @@ jobs:
cff_write(keys = mykeys)

shell: Rscript {0}

- uses: pre-commit/[email protected]
with:
extra_args: --files CITATION.cff
continue-on-error: true
- name: Commit results
run: |
git config --local user.name "github-actions[bot]"
Expand Down
39 changes: 39 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,21 @@ references:
email: [email protected]
orcid: https://orcid.org/0000-0002-6983-2759
year: "2024"
- type: software
title: styler
abstract: "styler: Non-Invasive Pretty Printing of R Code"
notes: Suggests
url: https://styler.r-lib.org
repository: https://CRAN.R-project.org/package=styler
authors:
- family-names: Müller
given-names: Kirill
email: [email protected]
orcid: https://orcid.org/0000-0002-1416-3412
- family-names: Walthert
given-names: Lorenz
email: [email protected]
year: "2024"
- type: software
title: testthat
abstract: "testthat: Unit Testing for R"
Expand All @@ -154,3 +169,27 @@ references:
email: [email protected]
year: "2024"
version: ">= 3.0.0"
- type: software
title: usethis
abstract: "usethis: Automate Package and Project Setup"
notes: Suggests
url: https://usethis.r-lib.org
repository: https://CRAN.R-project.org/package=usethis
authors:
- family-names: Wickham
given-names: Hadley
email: [email protected]
orcid: https://orcid.org/0000-0003-4757-117X
- family-names: Bryan
given-names: Jennifer
email: [email protected]
orcid: https://orcid.org/0000-0002-6983-2759
- family-names: Barrett
given-names: Malcolm
email: [email protected]
orcid: https://orcid.org/0000-0003-0299-5825
- family-names: Teucher
given-names: Andy
email: [email protected]
orcid: https://orcid.org/0000-0002-7840-692X
year: "2024"
4 changes: 3 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ Imports:
tidyr
Suggests:
readr,
testthat (>= 3.0.0)
styler,
testthat (>= 3.0.0),
usethis
biocViews:
Config/testthat/edition: 3
Encoding: UTF-8
Expand Down