-
Notifications
You must be signed in to change notification settings - Fork 9
47 lines (43 loc) · 1.2 KB
/
radian.yml
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
name: Test radian
on:
push:
branches: [main, master]
tags: ['*']
pull_request:
branches: [main, master]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
RADIAN_NO_INPUTHOOK: 1
jobs:
pytest:
name: ${{ matrix.os }} r-${{ matrix.r }} py-${{ matrix.python }}
strategy:
fail-fast: false
matrix:
r: [latest]
python: [3.8]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: ${{ matrix.python }}
- name: Install rchitect
run: python -m pip install -e .[test]
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.r }}
- name: Install reticulate and askpass
run: Rscript -e "install.packages(c('reticulate', 'askpass'))"
- name: Install radian and run tests
shell: bash
run: |
git clone https://github.com/randy3k/radian
cd radian
python -m pip install -e .[test]
python -m pip install jedi==0.17.2
pytest -s