-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (45 loc) · 1.38 KB
/
check.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
on:
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: 'Run the build with tmate debugging enabled'
required: false
default: false
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "0 0 * * 0,3"
name: Check Pharmpy development version
jobs:
run-tests:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- {os: windows-2022, r: 'release'}
- {os: macOS-13, r: 'release'}
- {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout pharmr
uses: actions/checkout@v4
with:
path: pharmr_repo
- uses: ./pharmr_repo/.github/actions/setup-dependencies
- uses: ./pharmr_repo/.github/actions/setup-pharmr
with:
as-release: false
- uses: ./pharmr_repo/.github/actions/check-pharmr
- name: Debug session
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}