-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (58 loc) · 1.75 KB
/
cross-platform.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: cross-platform
on:
schedule: # monthly
- cron: "0 09 1 * *"
push:
paths:
- 'conda/environment-win.lock'
workflow_dispatch:
defaults:
run:
shell: bash -l {0}
jobs:
build:
runs-on: ${{ matrix.config.os }}
name: test-${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {os: macos-12, slug: 'macos'}
- {os: ubuntu-22.04, slug: 'linux'}
- {os: windows-2022, slug: 'win'}
env:
lockfile: workflowr-pkg-tests/conda/environment-${{ matrix.config.slug }}.lock
NOT_CRAN: TRUE
_R_CHECK_CRAN_INCOMING_: TRUE
_R_CHECK_CRAN_INCOMING_REMOTE_: FALSE
TZ: UTC
steps:
- name: Checkout workflowr-pkg-tests
uses: actions/checkout@v4
with:
path: workflowr-pkg-tests
- name: Checkout workflowr
uses: actions/checkout@v4
with:
repository: workflowr/workflowr
path: workflowr
- name: Install Conda environment from conda/environment.yaml
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ${{ env.lockfile }}
environment-name: wflow-env
cache-environment: true
cache-environment-key: ${{ runner.os }}-${{ hashFiles(env.lockfile) }}-0
- name: Install qpdf
# conda pkg not available for Windows
if: runner.os != 'Windows'
run: micromamba install conda-forge::qpdf
- name: Session information
run: Rscript -e "sessionInfo()"
- name: Build
run: R CMD build --no-manual workflowr/
- name: Check
run: R CMD check --no-manual --as-cran workflowr_*.tar.gz
- name: Test results
if: always()
run: cat workflowr.Rcheck/tests/testthat.Rout*