Skip to content

WIP: Test downstream #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
branches:
- master

name: rcc
name: downstream

jobs:
R-CMD-check:
Expand All @@ -24,14 +24,7 @@ jobs:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'release'}
- {os: windows-latest, r: 'devel'}
- {os: ubuntu-16.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest", http-user-agent: "R/4.0.0 (ubuntu-16.04) R (4.0.0 x86_64-pc-linux-gnu x86_64 linux-gnu) on GitHub Actions" }
- {os: ubuntu-16.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
- {os: ubuntu-16.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
- {os: ubuntu-16.04, r: '3.5', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
- {os: ubuntu-16.04, r: '3.4', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
- {os: ubuntu-16.04, r: '3.3', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
- {downstream: r-prof/winch, os: ubuntu-16.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
Expand All @@ -40,6 +33,12 @@ jobs:

steps:
- uses: actions/checkout@v2
with:
path: this
- uses: actions/checkout@v2
with:
repository: ${{ matrix.config.downstream }}
path: downstream

- uses: r-lib/actions/setup-r@master
with:
Expand All @@ -54,14 +53,15 @@ jobs:
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
shell: Rscript {0}
working-directory: ./downstream

- name: Cache R packages
if: runner.os != 'Windows'
uses: actions/cache@v1
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
key: ${{ runner.os }}-${{ hashFiles('downstream/.github/R-version') }}-1-${{ hashFiles('downstream/.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('downstream/.github/R-version') }}-1-

- name: Install system dependencies
if: runner.os == 'Linux'
Expand All @@ -70,12 +70,27 @@ jobs:
do
eval sudo $cmd
done < <(Rscript -e 'req <- remotes::system_requirements("ubuntu", "16.04"); if (length(req) > 0) cat(req, sep = "\n")')
working-directory: ./downstream

- name: Install libunwind
if: runner.os == 'Linux'
env:
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
run: |
sudo apt-get install -y libunwind-dev

- name: Install dependencies
run: |
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("rcmdcheck")
shell: Rscript {0}
working-directory: ./downstream

- name: Install local
run: |
remotes::install_local(".")
shell: Rscript {0}
working-directory: ./this

- name: Session info
run: |
Expand All @@ -90,15 +105,17 @@ jobs:
_R_CHECK_SYSTEM_CLOCK_: false
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = if (getRversion() >= "3.5" && getRversion() < "3.6") "error" else "warning", check_dir = "check")
shell: Rscript {0}
working-directory: ./downstream

- name: Show testthat output
if: always()
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash
working-directory: ./downstream

- name: Upload check results
if: failure()
uses: actions/upload-artifact@main
with:
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
path: check
path: downstream/check
85 changes: 0 additions & 85 deletions .github/workflows/example.yaml

This file was deleted.

57 changes: 0 additions & 57 deletions .github/workflows/pkgdown.yaml

This file was deleted.

56 changes: 0 additions & 56 deletions .github/workflows/test-coverage.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions .github/workflows/upstream.yaml

This file was deleted.