-
Notifications
You must be signed in to change notification settings - Fork 25
87 lines (68 loc) · 2.69 KB
/
r-python-interop-testing.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: TileDB-SOMA R-Python interop testing
on:
pull_request:
# TODO: leave this enabled for pre-merge signal for now. At some point we may want to go back to
# only having this signal post-merge.
#paths:
# - "apis/python/**"
# - "apis/r/**"
# - "apis/system/**"
push:
branches:
- main
- 'release-*'
workflow_dispatch:
jobs:
ci:
strategy:
matrix:
include:
- { os: ubuntu-latest }
runs-on: ${{ matrix.os }}
steps:
- name: Checkout TileDB-SOMA
uses: actions/checkout@v3
with:
fetch-depth: 0 # ensure we get all tags to inform package version determination
- name: Bootstrap
run: cd apis/r && tools/r-ci.sh bootstrap
- name: Dependencies
run: cd apis/r && tools/r-ci.sh install_all
- name: CMake
uses: lukka/get-cmake@latest
- name: MkVars
run: mkdir ~/.R && echo "CXX17FLAGS=-Wno-deprecated-declarations -Wno-deprecated" > ~/.R/Makevars
- name: Install r-universe build of tiledb-r (macOS)
if: ${{ matrix.os == 'macOS-latest' }}
run: cd apis/r && Rscript -e "install.packages('tiledb', repos = c('https://eddelbuettel.r-universe.dev', 'https://cloud.r-project.org'))"
- name: Install r-universe build of tiledb-r (linux)
if: ${{ matrix.os != 'macOS-latest' }}
run: cd apis/r && Rscript -e "options(bspm.version.check=TRUE); install.packages('tiledb', repos = c('https://eddelbuettel.r-universe.dev/bin/linux/jammy/4.3/', 'https://cloud.r-project.org'))"
- name: Build and install libtiledbsoma
run: sudo scripts/bld --prefix=/usr/local && sudo ldconfig
- name: Install R-tiledbsoma
run: |
cd apis/r
R CMD build --no-build-vignettes --no-manual .
FILE=$(ls -1t *.tar.gz | head -n 1)
R CMD INSTALL $FILE
- name: Show R package versions
run: Rscript -e 'tiledbsoma::show_package_versions()'
- name: Install testing prereqs
run: python -m pip -v install -U pip pytest-cov 'typeguard<3.0' types-setuptools
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: pip
cache-dependency-path: ./apis/python/setup.py
- name: Install tiledbsoma
run: python -m pip -v install -e apis/python
- name: Show Python package versions
run: |
python -c 'import tiledbsoma; tiledbsoma.show_package_versions()'
python scripts/show-versions.py
- name: Update Packages
run: Rscript -e 'update.packages(ask=FALSE)'
- name: Interop Tests
run: python -m pytest apis/system/tests/