Skip to content

Commit 59cf703

Browse files
Merge 38dc65a into 9305b62
2 parents 9305b62 + 38dc65a commit 59cf703

File tree

134 files changed

+2436
-533
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+2436
-533
lines changed

.Rbuildignore

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
1-
^Meta$
2-
^doc$
1+
^.*-in_tree$
32
^.*\.Rproj$
4-
^\.Rproj\.user$
53
^API$
6-
^README\.Rmd$
4+
^CONTRIBUTING\.md$
5+
^LICENSE\.md$
6+
^Meta$
77
^README-.*\.png$
8-
^appveyor\.yml$
9-
^tic\.R$
10-
^docs$
11-
^_pkgdown\.yml$
12-
CONTRIBUTING.md
8+
^README\.Rmd$
9+
^\.Rproj\.user$
10+
^\.github$
1311
^\.gitsum$
14-
^gitsum$
15-
revdep
12+
^\.pre-commit-config\.yaml$
13+
^_pkgdown\.yml$
1614
^cran-comments\.md$
15+
^doc$
16+
^docs$
17+
^gitsum$
18+
^inst/WORDLIST$
19+
^inst/hooks/.*$
20+
^revdep$
1721
^tests/testmanual$
18-
^\.pre-commit-config\.yaml$
19-
^brew\-log$
20-
^\.github/$
22+
^tic\.R$
2123
^touchstone$
22-
^\.github$
23-
^LICENSE\.md$
24-
^inst/hooks/$
25-
^inst/WORDLIST$
24+
^vignettes/gsoc_proposal$

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
tests/testthat/**/*_tree linguist-generated=true
1+
tests/testthat/**/*_tree linguist-generated=true

.github/workflows/R-CMD-check.yaml

Lines changed: 0 additions & 113 deletions
This file was deleted.

.github/workflows/cancel.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/workflows/check-full.yaml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
4+
on:
5+
push:
6+
branches: [main, master]
7+
pull_request:
8+
branches: [main, master]
9+
10+
11+
name: R-CMD-check
12+
13+
jobs:
14+
R-CMD-check:
15+
runs-on: ${{ matrix.config.os }}
16+
17+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
18+
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
config:
23+
- {os: macOS-latest, r: 'release'}
24+
25+
- {os: windows-latest, r: 'release'}
26+
# Use 3.6 to trigger usage of RTools35
27+
- {os: windows-latest, r: '3.6'}
28+
29+
# Use older ubuntu to maximise backward compatibility
30+
- {os: ubuntu-18.04, r: 'devel', http-user-agent: 'release'}
31+
- {os: ubuntu-18.04, r: 'release'}
32+
- {os: ubuntu-18.04, r: 'oldrel-1'}
33+
- {os: ubuntu-18.04, r: 'oldrel-2'}
34+
- {os: ubuntu-18.04, r: 'oldrel-3'}
35+
- {os: ubuntu-18.04, r: 'oldrel-4'}
36+
37+
env:
38+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
39+
R_KEEP_PKG_SOURCE: yes
40+
41+
steps:
42+
- uses: actions/checkout@v2
43+
44+
- uses: r-lib/actions/setup-pandoc@v2
45+
46+
- uses: r-lib/actions/setup-r@v2
47+
with:
48+
r-version: ${{ matrix.config.r }}
49+
http-user-agent: ${{ matrix.config.http-user-agent }}
50+
use-public-rspm: true
51+
52+
- uses: r-lib/actions/setup-r-dependencies@v2
53+
with:
54+
extra-packages: any::rcmdcheck, data.tree=?ignore-before-r=3.5.0
55+
needs: check
56+
57+
- uses: r-lib/actions/check-r-package@v2
58+
env:
59+
_R_CHECK_FORCE_SUGGESTS_: false
60+
61+
concurrency:
62+
group: ${{ github.workflow }}-${{ github.head_ref }}
63+
cancel-in-progress: true

.github/workflows/pkgdown.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
on:
22
push:
3-
branches: master
3+
branches: main
44

55
name: pkgdown
66

@@ -44,3 +44,7 @@ jobs:
4444
git config --local user.email "[email protected]"
4545
git config --local user.name "GitHub Actions"
4646
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
47+
48+
concurrency:
49+
group: ${{ github.workflow }}-${{ github.head_ref }}
50+
cancel-in-progress: true

.github/workflows/pre-commit.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: pre-commit
2+
on:
3+
push:
4+
branches-ignore:
5+
- 'master'
6+
- 'main'
7+
pull_request:
8+
types: [opened, synchronize, reopened, ready_for_review]
9+
10+
jobs:
11+
pre-commit:
12+
runs-on: ubuntu-18.04
13+
if: >-
14+
!contains(github.event.head_commit.message, 'ci skip') &&
15+
(
16+
startsWith(github.ref, 'refs/heads') ||
17+
github.event.pull_request.draft == false
18+
)
19+
steps:
20+
- name: Cancel Previous Runs
21+
uses: styfle/[email protected]
22+
with:
23+
access_token: ${{ github.token }}
24+
- uses: actions/checkout@v2
25+
with:
26+
fetch-depth: 0
27+
- name: Install system dependencies
28+
if: runner.os == 'Linux'
29+
run: |
30+
# your system installation code here
31+
# sudo apt-get install -y libcurl4-openssl-dev
32+
- name: Set up Python
33+
uses: actions/setup-python@v2
34+
with:
35+
python-version: "3.9"
36+
architecture: "x64"
37+
- name: Run pre-commit
38+
uses: pre-commit/[email protected]
39+
- name: Commit files
40+
if: failure() && startsWith(github.ref, 'refs/heads')
41+
run: |
42+
if [[ `git status --porcelain --untracked-files=no` ]]; then
43+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
44+
git config --local user.name "github-actions[bot]"
45+
git checkout -- .github/workflows
46+
git commit -m "pre-commit" -a
47+
fi
48+
- name: Push changes
49+
if: failure() && startsWith(github.ref, 'refs/heads')
50+
uses: ad-m/github-push-action@master
51+
with:
52+
github_token: ${{ secrets.GITHUB_TOKEN }}
53+
branch: ${{ github.ref }}
54+
env:
55+
RENV_CONFIG_CACHE_ENABLED: FALSE

.github/workflows/test-coverage.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
on:
22
push:
33
branches:
4-
- master
4+
- main
55
pull_request:
66
branches:
7-
- master
7+
- main
88

99
name: test-coverage
1010

@@ -44,3 +44,7 @@ jobs:
4444
- name: Test coverage
4545
run: covr::codecov()
4646
shell: Rscript {0}
47+
48+
concurrency:
49+
group: ${{ github.workflow }}-${{ github.head_ref }}
50+
cancel-in-progress: true
Lines changed: 6 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Continuous Benchmarks (Comment)
22

3-
# read-write repo token
4-
# access to secrets
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.head_ref }}
5+
cancel-in-progress: true
6+
57
on:
68
workflow_run:
79
workflows: ["Continuous Benchmarks (Receive)"]
@@ -15,38 +17,6 @@ jobs:
1517
${{ github.event.workflow_run.event == 'pull_request' &&
1618
github.event.workflow_run.conclusion == 'success' }}
1719
steps:
18-
- name: 'Download artifact'
19-
uses: actions/[email protected]
20-
with:
21-
script: |
22-
var artifacts = await github.actions.listWorkflowRunArtifacts({
23-
owner: context.repo.owner,
24-
repo: context.repo.repo,
25-
run_id: ${{github.event.workflow_run.id }},
26-
});
27-
var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
28-
return artifact.name == "pr"
29-
})[0];
30-
var download = await github.actions.downloadArtifact({
31-
owner: context.repo.owner,
32-
repo: context.repo.repo,
33-
artifact_id: matchArtifact.id,
34-
archive_format: 'zip',
35-
});
36-
var fs = require('fs');
37-
fs.writeFileSync('${{github.workspace}}/pr.zip', Buffer.from(download.data));
38-
- run: unzip pr.zip
39-
- name: 'Comment on PR'
40-
uses: actions/github-script@v3
20+
- uses: lorenzwalthert/touchstone/actions/comment@main
4121
with:
42-
github-token: ${{ secrets.GITHUB_TOKEN }}
43-
script: |
44-
var fs = require('fs');
45-
var issue_number = Number(fs.readFileSync('./NR'));
46-
var body = fs.readFileSync('./info.txt').toString();
47-
await github.issues.createComment({
48-
owner: context.repo.owner,
49-
repo: context.repo.repo,
50-
issue_number: issue_number,
51-
body: body
52-
});
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)