-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tibble 3.2.1 - Use symbol instead of string in `.Call()`.
- Loading branch information
Showing
164 changed files
with
3,265 additions
and
30,328 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Can't add to .Renviron, because it overshadows ~/.Renvion | ||
Sys.setenv(R_MAKEVARS_USER = "Makevars.debug") | ||
|
||
if (file.exists("~/.Rprofile")) { | ||
source("~/.Rprofile") | ||
} |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,35 +8,43 @@ jobs: | |
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@master | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup R | ||
uses: r-lib/actions/setup-r@master | ||
with: | ||
r-version: 'release' | ||
- uses: ./.github/workflows/git-identity | ||
|
||
- name: Install dependencies | ||
run: | | ||
install.packages("remotes") | ||
remotes::install_deps(dependencies = TRUE) | ||
remotes::install_github("r-lib/bench") | ||
if (!requireNamespace("here", quietly = TRUE)) install.packages("here") | ||
shell: Rscript {0} | ||
- uses: ./.github/workflows/custom/before-install | ||
if: hashFiles('.github/workflows/custom/before-install/action.yml') != '' | ||
|
||
- name: Install package | ||
run: R CMD INSTALL . | ||
- uses: ./.github/workflows/install | ||
with: | ||
r-version: ${{ matrix.config.r }} | ||
cache-version: cb-1 | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
extra-packages: r-lib/bench | ||
needs: check | ||
|
||
- name: Fetch existing benchmarks | ||
run: Rscript -e 'bench::cb_fetch()' | ||
- uses: ./.github/workflows/custom/after-install | ||
if: hashFiles('.github/workflows/custom/after-install/action.yml') != '' | ||
|
||
- name: Run benchmarks | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Actions" | ||
Rscript -e 'bench::cb_run()' | ||
success <- FALSE | ||
for (i in 1:100) { | ||
message("Attempt ", i) | ||
bench::cb_fetch() | ||
bench::cb_run() | ||
tryCatch( | ||
{ | ||
bench::cb_push() | ||
success <- TRUE | ||
break | ||
}, | ||
error = identity | ||
) | ||
system("git push . :refs/notes/benchmarks") | ||
} | ||
stopifnot(success) | ||
shell: Rscript {0} | ||
|
||
- name: Show benchmarks | ||
run: git notes --ref benchmarks show | ||
|
||
- name: Push benchmarks | ||
run: Rscript -e "bench::cb_push()" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: fledge | ||
|
||
on: | ||
# for manual triggers | ||
workflow_dispatch: | ||
# daily run | ||
schedule: | ||
- cron: "30 0 * * *" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || '' }}-${{ github.base_ref || '' }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
check_fork: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
is_forked: ${{ steps.check.outputs.is_forked }} | ||
steps: | ||
- name: Check if the repo is forked | ||
id: check | ||
run: | | ||
echo "is_forked=$(curl -s -H "Accept: application/vnd.github+json" -H 'Authorization: Bearer ${{ github.token }}' -H "X-GitHub-Api-Version: 2022-11-28" ${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY} | jq .fork)" >> $GITHUB_OUTPUT | ||
fledge: | ||
runs-on: ubuntu-latest | ||
needs: check_fork | ||
if: needs.check_fork.outputs.is_forked == 'false' | ||
permissions: | ||
contents: write | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
FLEDGE_GHA_CI: true | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: ./.github/workflows/git-identity | ||
|
||
- uses: ./.github/workflows/install | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
install-r: false | ||
cache-version: fledge-1 | ||
packages: cynkra/fledge | ||
|
||
- name: Bump version | ||
run: | | ||
if (fledge::bump_version(which = "dev", no_change_behavior = "noop")) { | ||
fledge::finalize_version(push = TRUE) | ||
} | ||
shell: Rscript {0} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: 'Actions to set up a Git identity' | ||
name: "Actions to set up a Git identity" | ||
|
||
runs: | ||
using: "composite" | ||
|
Oops, something went wrong.