-
Notifications
You must be signed in to change notification settings - Fork 14
79 lines (70 loc) · 2.8 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
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.8"
- os: ubuntu-latest
python-version: "3.9"
#- os: macos-latest
# python-version: "3.9"
#- os: windows-latest
# python-version: "3.9"
steps:
- uses: actions/checkout@v4
# More info on options: https://github.com/conda-incubator/setup-miniconda
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.cfg.python-version }}
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/10843763/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 --nbval-current-env --nbval-cell-timeout=360"
PYTEST_IGNORE="--ignore=notebooks/custom_kinfraglib/2_3_custom_filters_paper.ipynb --ignore=notebooks/kinfraglib --ignore=notebooks/custom_kinfraglib/1_1_custom_filters_unwanted_substructures.ipynb --ignore=notebooks/custom_kinfraglib/1_2_custom_filters_drug_likeness.ipynb --ignore=notebooks/custom_kinfraglib/1_3_custom_filters_synthesizability.ipynb --ignore=notebooks/custom_kinfraglib/1_4_custom_filters_pairwise_retrosynthesizability.ipynb --ignore=notebooks/custom_kinfraglib/2_1_custom_filters_pipeline.ipynb"
pytest $PYTEST_ARGS $PYTEST_IGNORE