Diff of /azure-pipelines.yml [000000] .. [3b722e]

Switch to unified view

a b/azure-pipelines.yml
1
# Python package
2
# Create and test a Python package on multiple Python versions.
3
# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more:
4
# https://docs.microsoft.com/azure/devops/pipelines/languages/python
5
6
trigger:
7
- main
8
9
pool:
10
  vmImage: 'ubuntu-latest'
11
strategy:
12
  matrix:
13
    Python_min_ob:
14
      python.version: '3.6'
15
      ODDT_TOOLKIT: 'ob'
16
      MINIMAL_REQ: '1'
17
    Python_min_rdk:
18
      python.version: '3.6'
19
      ODDT_TOOLKIT: 'rdk'
20
      MINIMAL_REQ: '1'
21
    Python36_ob:
22
      python.version: '3.6'
23
      ODDT_TOOLKIT: 'ob'
24
    Python36_rdk:
25
      python.version: '3.6'
26
      ODDT_TOOLKIT: 'rdk'
27
    Python37_ob:
28
      python.version: '3.7'
29
      ODDT_TOOLKIT: 'ob'
30
    Python37_rdk:
31
      python.version: '3.7'
32
      ODDT_TOOLKIT: 'rdk'
33
    Python38_ob:
34
      python.version: '3.8'
35
      ODDT_TOOLKIT: 'ob'
36
    Python38_rdk:
37
      python.version: '3.8'
38
      ODDT_TOOLKIT: 'rdk'
39
steps:
40
- bash: echo "##vso[task.prependpath]$CONDA/bin"
41
  displayName: Add conda to PATH
42
43
- bash: |
44
    conda config --set always_yes yes --set changeps1 no
45
    conda install -q -c conda-forge mamba
46
    mamba create -q -n testenv python=$(python.version)
47
    source activate /usr/share/miniconda/envs/testenv
48
    if [[ "$MINIMAL_REQ" == "1" ]]; then
49
      mamba install -q -c conda-forge numpy=1.12 scipy=0.19 joblib=0.10.3 scikit-image=0.12.3 xlsxwriter \
50
        scikit-learn=0.18 pandas=0.19.2;
51
      if [[ "$ODDT_TOOLKIT" == "ob" ]]; then
52
        mamba install -q -c conda-forge openbabel=3.0.0;
53
      elif [[ "$ODDT_TOOLKIT" == "rdk" ]]; then
54
        mamba install -q -c conda-forge rdkit=2018.03 boost=1.68;
55
      fi
56
    else
57
      mamba install -q -c anaconda numpy scikit-learn joblib pandas scikit-image xlsxwriter six
58
      if [[ "$ODDT_TOOLKIT" == "ob" ]]; then
59
        mamba install -q -c conda-forge openbabel;
60
      elif [[ "$ODDT_TOOLKIT" == "rdk" ]]; then
61
        mamba install -q -c conda-forge rdkit;
62
      fi
63
    fi
64
    mamba install -q -c bioconda autodock-vina
65
    mamba install -q -c conda-forge pytest pytest-cov pytest-xdist
66
    pip install coveralls
67
    python setup.py install
68
    echo "Using toolkit: ${ODDT_TOOLKIT}"
69
    pytest --cov=oddt -n 2 -v -s --durations=0 tests/
70
    oddt_cli --help
71
    oddt_cli tests/data/dude/xiap/crystal_ligand.sdf -osmi
72
    oddt_cli tests/data/dude/xiap/actives_docked.sdf --similarity ifp --query tests/data/dude/xiap/crystal_ligand.sdf --cutoff 0.9 --receptor tests/data/dude/xiap/receptor_rdkit.pdb -ocsv
73
    oddt_cli tests/data/dude/xiap/actives_docked.sdf --similarity sifp --query tests/data/dude/xiap/crystal_ligand.sdf --cutoff 0.9 --receptor tests/data/dude/xiap/receptor_rdkit.pdb -ocsv
74
    oddt_cli tests/data/dude/xiap/actives_docked.sdf --similarity usr --query tests/data/dude/xiap/crystal_ligand.sdf --cutoff 0.3 -ocsv
75
    oddt_cli tests/data/dude/xiap/actives_docked.sdf --similarity usr_cat --query tests/data/dude/xiap/crystal_ligand.sdf --cutoff 0.3 -ocsv
76
    oddt_cli tests/data/dude/xiap/actives_docked.sdf --similarity electroshape --query tests/data/dude/xiap/crystal_ligand.sdf --cutoff 0.3 -ocsv
77
    oddt_cli tests/data/dude/xiap/actives_docked.sdf --score pleclinear --receptor tests/data/dude/xiap/receptor_rdkit.pdb -ocsv
78
  displayName: 'pytest'