Renaming variables for consistency with C++ library #135
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pre-commit | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
pre-commit: | |
name: Pre-commit | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: '4.4.0' | |
- name: Cache R packages for pre-commit (live in renv) | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cache/R/renv | |
key: r-precommit-cache|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }} | |
# Notice this step depends on what | |
# https://github.com/lorenzwalthert/precommit has as | |
# R version in renv.lock. GHA ubuntu-latest runner comes | |
# with R 4.4.1, which is the same as in renv.lock. If that | |
# changes, caching will not work as it will be loading a | |
# different version of R. | |
- name: Run pre-commit hooks | |
uses: pre-commit/[email protected] |