-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (52 loc) · 1.58 KB
/
ci.yml
File metadata and controls
64 lines (52 loc) · 1.58 KB
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
name: Tests
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
env:
RPY2_CFFI_MODE: ABI # avoids compilation issues with rpy2
steps:
- name: Check out repository
uses: actions/checkout@v4
# ---- Python setup ----
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
# ---- System dependencies ----
- name: Install system libraries
run: |
sudo apt-get update
sudo apt-get install -y libcurl4-openssl-dev libssl-dev libxml2-dev
- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
r-version: "4.3"
- name: Set R library path
run: |
echo "LD_LIBRARY_PATH=/opt/R/4.3.3/lib/R/lib:${LD_LIBRARY_PATH}" >> $GITHUB_ENV
- name: Install required R packages
run: |
Rscript -e "install.packages(
c('lsr', 'rstatix', 'effectsize', 'Hmisc'),
repos = 'https://cloud.r-project.org'
)"
# ---- Python dependencies ----
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install \
numpy==1.26.* \
scipy==1.11.0 \
numba==0.60.0 \
numba-scipy==0.4.0 \
pandas
pip install rpy2==3.5.12
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
pip install .
# ---- Run tests ----
- name: Run unit tests
run: |
python -m unittest discover -s tests