Skip to content

Commit 4de3aca

Browse files
Copilotasgr
andcommitted
Add GitHub Actions CI workflow for ProSpect
Co-authored-by: asgr <5617132+asgr@users.noreply.github.com>
1 parent 235ff98 commit 4de3aca

1 file changed

Lines changed: 62 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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+
on:
4+
push:
5+
pull_request:
6+
branches: [main, master]
7+
8+
name: R-CMD-check
9+
10+
jobs:
11+
R-CMD-check:
12+
runs-on: ${{ matrix.config.os }}
13+
14+
permissions:
15+
contents: read
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+
- {os: windows-latest, r: 'release'}
25+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
26+
- {os: ubuntu-latest, r: 'release'}
27+
- {os: ubuntu-latest, r: 'oldrel-1'}
28+
29+
env:
30+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
31+
R_KEEP_PKG_SOURCE: yes
32+
33+
steps:
34+
- uses: actions/checkout@v2
35+
36+
- uses: r-lib/actions/setup-pandoc@v2
37+
38+
- uses: r-lib/actions/setup-r@v2
39+
with:
40+
r-version: ${{ matrix.config.r }}
41+
http-user-agent: ${{ matrix.config.http-user-agent }}
42+
use-public-rspm: true
43+
44+
- uses: r-lib/actions/setup-r-dependencies@v2
45+
with:
46+
dependencies: '"hard"'
47+
extra-packages: any::rcmdcheck,
48+
github::asgr/ProSpectData@main,
49+
github::asgr/Rwcs@master,
50+
github::asgr/Rfits@master,
51+
github::ICRAR/ProFit@master,
52+
github::asgr/Highlander@master,
53+
github::asgr/hyper.fit@master,
54+
github::asgr/ParmOff@main,
55+
any::knitr,
56+
any::rmarkdown
57+
58+
- uses: r-lib/actions/check-r-package@v2
59+
with:
60+
args: 'c("--no-manual", "--as-cran")'
61+
error-on: '"error"'
62+
upload-snapshots: true

0 commit comments

Comments
 (0)