Skip to content

Commit

Permalink
Merge pull request #19 from jrdnbradford/gha-check-datasets
Browse files Browse the repository at this point in the history
Use GHA to check datasets and docs
  • Loading branch information
jrdnbradford authored Jul 5, 2024
2 parents 5392a76 + dcb5513 commit 0d8de5d
Show file tree
Hide file tree
Showing 75 changed files with 60 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
r-version: 'renv'

- uses: r-lib/actions/setup-r-dependencies@v2
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ on:
paths:
- 'README.qmd'

name: render-README
name: README-check

permissions:
contents: write
pull-requests: write

jobs:
render-README:
README-check:
runs-on: ubuntu-latest

steps:
Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/dataset-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
on:
push:
paths:
- 'data-raw/generate_data.R'
- 'data-raw/corpus/*'
pull_request:
paths:
- 'data-raw/generate_data.R'
- 'data-raw/corpus/*'

name: dataset-check

permissions:
contents: write
pull-requests: write

jobs:
dataset-check:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
r-version: 'renv'

- name: Install dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
packages:
any::glue
any::scales
any::usethis
any::dplyr
any::readr
any::roxygen2
extra-packages:
local::.

- name: Run Rscript
run: Rscript 'data-raw/generate_data.R'

- name: Update pull request
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Regenerate datasets and/or dataset documentation
file_pattern: 'R/data.R data/*.rda'
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<img src="man/figures/logo.png" align="right" height="139" alt="H. P. Lovecraft's signature in an R package hexagon"/>

[![R-CMD-check](https://github.com/jrdnbradford/lovecraftr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/jrdnbradford/lovecraftr/actions/workflows/R-CMD-check.yaml)
[![render-README](https://github.com/jrdnbradford/lovecraftr/actions/workflows/render-README.yaml/badge.svg)](https://github.com/jrdnbradford/lovecraftr/actions/workflows/render-README.yaml)
[![README-check](https://github.com/jrdnbradford/lovecraftr/actions/workflows/README-check.yaml/badge.svg)](https://github.com/jrdnbradford/lovecraftr/actions/workflows/README-check.yaml)
[![dataset-check](https://github.com/jrdnbradford/lovecraftr/actions/workflows/dataset-check.yaml/badge.svg)](https://github.com/jrdnbradford/lovecraftr/actions/workflows/dataset-check.yaml)

> The most merciful thing in the world, I think, is the inability of the
> human mind to correlate all its contents. We live on a placid island
Expand Down
3 changes: 2 additions & 1 deletion README.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ knitr::opts_chunk$set(
<img src="man/figures/logo.png" align="right" height="139" alt="H. P. Lovecraft's signature in an R package hexagon"/>

[![R-CMD-check](https://github.com/jrdnbradford/lovecraftr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/jrdnbradford/lovecraftr/actions/workflows/R-CMD-check.yaml)
[![render-README](https://github.com/jrdnbradford/lovecraftr/actions/workflows/render-README.yaml/badge.svg)](https://github.com/jrdnbradford/lovecraftr/actions/workflows/render-README.yaml)
[![README-check](https://github.com/jrdnbradford/lovecraftr/actions/workflows/README-check.yaml/badge.svg)](https://github.com/jrdnbradford/lovecraftr/actions/workflows/README-check.yaml)
[![dataset-check](https://github.com/jrdnbradford/lovecraftr/actions/workflows/dataset-check.yaml/badge.svg)](https://github.com/jrdnbradford/lovecraftr/actions/workflows/dataset-check.yaml)

> The most merciful thing in the world, I think, is the inability of the human mind to correlate all its contents. We live on a placid island of ignorance in the midst of black seas of infinity, and it was not meant that we should voyage far. The sciences, each straining in its own direction, have hitherto harmed us little; but some day the piecing together of dissociated knowledge will open up such terrifying vistas of reality, and of our frightful position therein, that we shall either go mad from the revelation or flee from the light into the peace and safety of a new dark age.
Expand Down
2 changes: 1 addition & 1 deletion data-raw/corpus/at_the_mountains_of_madness
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
AT THE MOUNTAINS OF MADNESS

I


I am forced into speech because men of science have refused to follow my advice
without knowing why. It is altogether against my will that I tell my reasons for
Expand Down
Binary file modified data/at_the_mountains_of_madness.rda
Binary file not shown.
Binary file modified data/azathoth.rda
Binary file not shown.
Binary file modified data/beyond_the_wall_of_sleep.rda
Binary file not shown.
Binary file modified data/celephais.rda
Binary file not shown.
Binary file modified data/cool_air.rda
Binary file not shown.
Binary file modified data/dagon.rda
Binary file not shown.
Binary file modified data/dreams_in_the_witch_house.rda
Binary file not shown.
Binary file modified data/ex_oblivione.rda
Binary file not shown.
Binary file modified data/facts_concerning_the_late_arthur_jermyn_and_his_family.rda
Binary file not shown.
Binary file modified data/from_beyond.rda
Binary file not shown.
Binary file modified data/he.rda
Binary file not shown.
Binary file modified data/herbert_west_reanimator.rda
Binary file not shown.
Binary file modified data/hypnos.rda
Binary file not shown.
Binary file modified data/imprisoned_with_the_pharoahs.rda
Binary file not shown.
Binary file modified data/in_the_vault.rda
Binary file not shown.
Binary file modified data/lovecraft.rda
Binary file not shown.
Binary file modified data/medusas_coil.rda
Binary file not shown.
Binary file modified data/memory.rda
Binary file not shown.
Binary file modified data/nyarlathotep.rda
Binary file not shown.
Binary file modified data/pickmans_model.rda
Binary file not shown.
Binary file modified data/poetry_of_the_gods.rda
Binary file not shown.
Binary file modified data/polaris.rda
Binary file not shown.
Binary file modified data/the_alchemist.rda
Binary file not shown.
Binary file modified data/the_beast_in_the_cave.rda
Binary file not shown.
Binary file modified data/the_book.rda
Binary file not shown.
Binary file modified data/the_call_of_cthulhu.rda
Binary file not shown.
Binary file modified data/the_case_of_charles_dexter_ward.rda
Binary file not shown.
Binary file modified data/the_cats_of_ulthar.rda
Binary file not shown.
Binary file modified data/the_colour_out_of_space.rda
Binary file not shown.
Binary file modified data/the_crawling_chaos.rda
Binary file not shown.
Binary file modified data/the_descendent.rda
Binary file not shown.
Binary file modified data/the_doom_that_came_to_sarnath.rda
Binary file not shown.
Binary file modified data/the_dream_quest_of_unknown_kadath.rda
Binary file not shown.
Binary file modified data/the_dunwich_horror.rda
Binary file not shown.
Binary file modified data/the_evil_clergyman.rda
Binary file not shown.
Binary file modified data/the_festival.rda
Binary file not shown.
Binary file modified data/the_haunter_of_the_dark.rda
Binary file not shown.
Binary file modified data/the_horror_at_martins_beach.rda
Binary file not shown.
Binary file modified data/the_horror_at_redhook.rda
Binary file not shown.
Binary file modified data/the_hound.rda
Binary file not shown.
Binary file modified data/the_lurking_fear.rda
Binary file not shown.
Binary file modified data/the_moon_bog.rda
Binary file not shown.
Binary file modified data/the_music_of_erich_zann.rda
Binary file not shown.
Binary file modified data/the_nameless_city.rda
Binary file not shown.
Binary file modified data/the_other_gods.rda
Binary file not shown.
Binary file modified data/the_outsider.rda
Binary file not shown.
Binary file modified data/the_picture_in_the_house.rda
Binary file not shown.
Binary file modified data/the_quest_of_iranon.rda
Binary file not shown.
Binary file modified data/the_rats_in_the_walls.rda
Binary file not shown.
Binary file modified data/the_shadow_out_of_time.rda
Binary file not shown.
Binary file modified data/the_shadow_over_innsmouth.rda
Binary file not shown.
Binary file modified data/the_shunned_house.rda
Binary file not shown.
Binary file modified data/the_silver_key.rda
Binary file not shown.
Binary file modified data/the_statement_of_randolph_carter.rda
Binary file not shown.
Binary file modified data/the_strange_high_house_in_the_mist.rda
Binary file not shown.
Binary file modified data/the_street.rda
Binary file not shown.
Binary file modified data/the_temple.rda
Binary file not shown.
Binary file modified data/the_terrible_old_man.rda
Binary file not shown.
Binary file modified data/the_thing_on_the_doorstep.rda
Binary file not shown.
Binary file modified data/the_tomb.rda
Binary file not shown.
Binary file modified data/the_transition_of_juan_romero.rda
Binary file not shown.
Binary file modified data/the_tree.rda
Binary file not shown.
Binary file modified data/the_unnamable.rda
Binary file not shown.
Binary file modified data/the_very_old_folk.rda
Binary file not shown.
Binary file modified data/the_whisperer_in_darkness.rda
Binary file not shown.
Binary file modified data/the_white_ship.rda
Binary file not shown.
Binary file modified data/through_the_gates_of_the_silver_key.rda
Binary file not shown.
Binary file modified data/what_the_moon_brings.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion renv.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"R": {
"Version": "4.2.2",
"Version": "4.4.1",
"Repositories": [
{
"Name": "CRAN",
Expand Down

0 comments on commit 0d8de5d

Please sign in to comment.