forked from theislab/anndata2ri
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (39 loc) · 1.01 KB
/
.travis.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
language: python
dist: focal
cache:
pip: true
directories:
- /home/travis/R/Library
- /home/travis/.cache/ExperimentHub
env:
- R_LIBS_SITE=/home/travis/R/Library
branches:
only:
- master # All other branches should become (draft) PRs and be build that way
# matrix
python:
- '3.6'
- '3.7'
- '3.8'
# packages
addons:
apt:
sources:
- sourceline: 'deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/'
key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xE298A3A825C0D65DFD57CBB651716619E084DAB9'
update: true
packages:
- r-base
# install basic requirements
before_install:
- sudo R --slave -e 'install.packages("BiocManager", repos="https://cloud.r-project.org/")'
- sudo R --slave -e 'options(warn = 2); BiocManager::install(c("SingleCellExperiment", "scRNAseq"))'
- mkdir -p ~/.cache/ExperimentHub
- pip install flit get_version 'rpy2>=3.4' pygments
# install package
install:
- python -m rpy2.situation
- flit install --extras=all
# test
script:
- PYTHONPATH=. pytest