Skip to content

add fread file connection support #3965

add fread file connection support

add fread file connection support #3965

Workflow file for this run

on:
push:
branches: [master]
pull_request:
workflow_dispatch:
name: code-quality
jobs:
changes:
runs-on: ubuntu-latest
outputs:
r: ${{ steps.filter.outputs.r }}
c: ${{ steps.filter.outputs.c }}
po: ${{ steps.filter.outputs.po }}
md: ${{ steps.filter.outputs.md }}
rd: ${{ steps.filter.outputs.rd }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # ensure diff against base is available for PRs
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
r:
- '**/*.R'
- '**/*.Rmd'
c:
- '**/*.c'
- '**/*.h'
po:
- 'po/**/*.po'
md:
- '**/*.md'
- '**/*.Rmd'
rd:
- 'man/**/*.Rd'
lint-r:
needs: changes
if: needs.changes.outputs.r == 'true' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- 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: |
r-lib/lintr
local::.
needs: lint
- name: Lint
run: lintr::lint_package(pattern = "(?i)[.](r|rmd)$") # TODO(#5830): use the default pattern
shell: Rscript {0}
env:
LINTR_ERROR_ON_LINT: true
R_LINTR_LINTER_FILE: .ci/.lintr
lint-c:
needs: changes
if: needs.changes.outputs.c == 'true' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
- name: Install Coccinelle
# relying on the action above us to have updated the package cache
run: /usr/bin/sudo apt-get -y install coccinelle
- name: Lint
run: |
Rscript .ci/lint.R .ci/linters/c src '[.][ch]$'
lint-po:
needs: changes
if: needs.changes.outputs.po == 'true' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
- name: Check translations
# only pay attention to files edited in the current PR, otherwise we can get
# a situation like after #6424 where some untranslated messages were added
# as part of non-translation maintenance, but this GHA would go red repeatedly
# until a translation is added or the blank/fuzzy translations removed. We'd
# rather only have the failure on one PR, then ignore these files later.
run: |
Rscript .ci/lint.R .ci/linters/po po '[.]po$'
lint-md:
needs: changes
if: needs.changes.outputs.md == 'true' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
- name: Lint
run: Rscript .ci/lint.R .ci/linters/md . '[.]R?md$'
lint-rd:
needs: changes
if: needs.changes.outputs.rd == 'true' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
- name: Lint Rd files
run: Rscript .ci/lint.R .ci/linters/rd man '[.]Rd$'