Skip to content

Commit 84719e6

Browse files
Merge pull request #174 from tidymodels/update-gha
update GHA
2 parents bd5841d + 83ec6a7 commit 84719e6

File tree

5 files changed

+35
-16
lines changed

5 files changed

+35
-16
lines changed

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

+8-8
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,23 @@ jobs:
2222
fail-fast: false
2323
matrix:
2424
config:
25-
- {os: macOS-latest, r: 'release'}
25+
- {os: macos-latest, r: 'release'}
2626

2727
- {os: windows-latest, r: 'release'}
28-
# Use 3.6 to trigger usage of RTools35
29-
- {os: windows-latest, r: '3.6'}
3028

31-
# Use older ubuntu to maximise backward compatibility
32-
- {os: ubuntu-18.04, r: 'devel', http-user-agent: 'release'}
33-
- {os: ubuntu-18.04, r: 'release'}
34-
- {os: ubuntu-18.04, r: 'oldrel-1'}
29+
# use 4.1 to check with rtools40's older compiler
30+
- {os: windows-latest, r: '4.1'}
31+
32+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
33+
- {os: ubuntu-latest, r: 'release'}
34+
- {os: ubuntu-latest, r: 'oldrel-1'}
3535

3636
env:
3737
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
3838
R_KEEP_PKG_SOURCE: yes
3939

4040
steps:
41-
- uses: actions/checkout@v2
41+
- uses: actions/checkout@v3
4242

4343
- uses: r-lib/actions/setup-pandoc@v2
4444

.github/workflows/lock.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ jobs:
1616
# issue-lock-labels: 'outdated'
1717
issue-lock-comment: >
1818
This issue has been automatically locked. If you believe you have
19-
found a related problem, please file a new issue (with a reprex:
19+
found a related problem, please file a new issue (with a reprex
2020
<https://reprex.tidyverse.org>) and link to this issue.
2121
issue-lock-reason: ''
2222
pr-lock-inactive-days: '14'
2323
# pr-exclude-labels: 'wip'
2424
pr-lock-labels: ''
2525
pr-lock-comment: >
2626
This pull request has been automatically locked. If you believe you
27-
have found a related problem, please file a new issue (with a reprex:
27+
have found a related problem, please file a new issue (with a reprex
2828
<https://reprex.tidyverse.org>) and link to this issue.
2929
pr-lock-reason: ''
3030
# process-only: 'issues'

.github/workflows/pkgdown.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
env:
2121
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
2222
steps:
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v3
2424

2525
- uses: r-lib/actions/setup-pandoc@v2
2626

@@ -39,7 +39,7 @@ jobs:
3939

4040
- name: Deploy to GitHub pages 🚀
4141
if: github.event_name != 'pull_request'
42-
uses: JamesIves/github-pages-deploy-action@4.1.4
42+
uses: JamesIves/github-pages-deploy-action@v4.4.1
4343
with:
4444
clean: false
4545
branch: gh-pages

.github/workflows/pr-commands.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
env:
1515
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
1818

1919
- uses: r-lib/actions/pr-fetch@v2
2020
with:
@@ -51,7 +51,7 @@ jobs:
5151
env:
5252
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
5353
steps:
54-
- uses: actions/checkout@v2
54+
- uses: actions/checkout@v3
5555

5656
- uses: r-lib/actions/pr-fetch@v2
5757
with:

.github/workflows/test-coverage.yaml

+21-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1616

1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v3
1919

2020
- uses: r-lib/actions/setup-r@v2
2121
with:
@@ -27,5 +27,24 @@ jobs:
2727
needs: coverage
2828

2929
- name: Test coverage
30-
run: covr::codecov(quiet = FALSE)
30+
run: |
31+
covr::codecov(
32+
quiet = FALSE,
33+
clean = FALSE,
34+
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
35+
)
3136
shell: Rscript {0}
37+
38+
- name: Show testthat output
39+
if: always()
40+
run: |
41+
## --------------------------------------------------------------------
42+
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
43+
shell: bash
44+
45+
- name: Upload test results
46+
if: failure()
47+
uses: actions/upload-artifact@v3
48+
with:
49+
name: coverage-test-failures
50+
path: ${{ runner.temp }}/package

0 commit comments

Comments
 (0)