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

feat: additional CI workflows #154

Merged
merged 11 commits into from
Nov 21, 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
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
strategy:
matrix:
include:
- {os: macOS-12, r: 'release'}
- {os: macOS-latest, r: 'release'}
- {os: ubuntu-latest, r: 'release'}

runs-on: ${{ matrix.os }}
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/check-link-rot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: check-link-rot

on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

jobs:
check-link-rot:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-pandoc@v2
with:
pandoc-version: "latest"

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

- name: Run URL checker
run: |
install.packages(c("urlchecker", "cli"))
options(crayon.enabled = TRUE)
rotten_links <- urlchecker::url_check(progress = FALSE)
print(rotten_links)
if (length(rotten_links$URL) > 0L) {
cli::cli_abort("Some URLs are outdated and need to be updated.")
}
shell: Rscript {0}
36 changes: 36 additions & 0 deletions .github/workflows/check-spelling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: check-spelling

on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

jobs:
check-spelling:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

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

- name: Spell check
run: |
install.packages(c("spelling", "cli"))
options(crayon.enabled = TRUE)
spelling_mistakes <- spelling::spell_check_package()
cli::cli_rule()
if (length(spelling_mistakes$word) > 0L) {
print(spelling_mistakes)
cli::cli_abort("Spelling errors found. Either correct them or update `inst/WORDLIST` using `spelling::update_wordlist()`.")
} else {
cli::cli_alert_success("No spelling errors found.")
}
cli::cli_rule()
shell: Rscript {0}
5 changes: 2 additions & 3 deletions R/as_tibble.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#' `int64` values will depend on the options set in `polars`. Use
#' `options(polars.int64_conversion =)` to specify how int64 variables should
#' be handled. See the [documentation in
#' `polars`](https://rpolars.github.io/man/polars_options.html#details) for
#' `polars`](https://pola-rs.github.io/r-polars/man/polars_options.html) for
#' the possible options.
#'
#' @export
Expand All @@ -29,8 +29,7 @@
as_tibble.tidypolars <- function(
x,
int64_conversion = polars::polars_options()$int64_conversion,
...
) {
...) {
dplyr::as_tibble(as.data.frame(x, int64_conversion = int64_conversion, ...))
}

Expand Down
68 changes: 68 additions & 0 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
Acknowledgements
Appsilon
BOM
Codecov
DataFrame
DataFrames
DataType
Datetime
DuckDB
GCP
Github
Hałun
HuggingFace
IPC
JSON
LazyFrame
LazyFrames
Lossy
NDJSON
Polars
Tidyverse
UDF
UDFs
Uncount
aren
autogenerated
aws
brotli
chrono
csv
datatypes
datetime
deprecations
downup
dplyr
dtype
dtypes
equalities
gcp
globbing
gzip
ipc
json
lz
lzo
markfairbanks
maths
natively
ndjson
nows
occurence
ofccurences
parallelizes
polars
prefiltered
rechunk
regexes
repo
subplans
tibble
tidyselect
tidyverse
timeunit
ungrouped
upcast
updown
vectorised
zstd
2 changes: 1 addition & 1 deletion man/as_tibble.tidypolars.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading