-
Notifications
You must be signed in to change notification settings - Fork 14
82 lines (73 loc) · 2.39 KB
/
ci.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
name: CI
on:
push:
branches:
- "master"
workflow_dispatch:
pull_request:
branches:
- "master"
- "dev"
schedule:
# Run a cron job once daily, weekdays only
- cron: "0 3 1,15 * *"
jobs:
test:
name: Pytest
runs-on: ${{ matrix.cfg.os }}
strategy:
fail-fast: false
matrix:
cfg:
#- os: ubuntu-latest
# python-version: "3.7"
- os: ubuntu-latest
python-version: "3.8"
- os: ubuntu-latest
python-version: "3.11"
#- os: macos-latest
# python-version: "3.10"
#- os: windows-latest
# python-version: "3.6"
steps:
- uses: actions/checkout@v2
# More info on options: https://github.com/conda-incubator/setup-miniconda
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.cfg.python-version }}
#mamba-version: "*"
miniforge-variant: Mambaforge
miniforge-version: latest
environment-file: environment.yml
channels: conda-forge,defaults
activate-environment: kinfraglib
#auto-update-conda: false
#auto-activate-base: false
#show-channel-urls: true
- name: Additional info about the build
shell: bash
run: |
uname -a
df -h
ulimit -a
- name: Environment Information
shell: bash -l {0}
run: |
conda info --all
conda list
- name: Download external data
shell: bash -l {0}
run: |
echo "Download combinatorial library from zenodo..."
wget -q -O data/combinatorial_library/combinatorial_library.tar.bz2 https://zenodo.org/record/3956580/files/combinatorial_library.tar.bz2?download=1
ls -l data/combinatorial_library/
echo "Decompress selected files..."
tar -xvf data/combinatorial_library/combinatorial_library.tar.bz2 combinatorial_library_deduplicated.json chembl_standardized_inchi.csv
mv combinatorial_library_deduplicated.json data/combinatorial_library/
mv chembl_standardized_inchi.csv data/combinatorial_library/
ls -l data/combinatorial_library/
- name: Run tests
shell: bash -l {0}
run: |
PYTEST_ARGS="--nbval-lax --current-env --nbval-cell-timeout=900"
pytest $PYTEST_ARGS