forked from rdkit/mongo-rdkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
64 lines (61 loc) · 1.91 KB
/
azure-pipelines.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
# Python package
# Create and test a Python package on multiple Python versions.
# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/python
trigger:
- master
jobs:
- job: Ubuntu_16_04_x64
timeoutInMinutes: 90
pool:
vmImage: ubuntu-16.04
steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- bash: |
conda env create --quiet --force --file env.yml
source activate mongo_rdkit
conda install -y -c rdkit rdkit=2020.03.1
displayName: Create conda environment
- bash: |
source activate mongo_rdkit
echo $PYTHONPATH
export PYTHONPATH="$PWD"
echo $PYTHONPATH
pytest
displayName: Test with pytest
- job: macOS_10_14
timeoutInMinutes: 90
pool:
vmImage: macOS-10.14
steps:
- bash: |
echo "##vso[task.prependpath]$CONDA/bin"
sudo chown -R $USER $CONDA
displayName: Add conda to PATH
- bash: conda env create --quiet --force --file env.yml
displayName: Create conda environment
- bash: |
source activate mongo_rdkit
echo $PYTHONPATH
export PYTHONPATH="$PWD"
echo $PYTHONPATH
pytest
displayName: Test with pytest
- job: Windows_
timeoutInMinutes: 90
pool:
vmImage: windows-2019
steps:
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
displayName: Add conda to PATH
- script: conda env create --quiet --force --file env.yml
displayName: Create Anaconda environment
- script: set PYTHONPATH=%PYTHONPATH%;C:.
displayName: Set PYTHONPATH correctly
- script: python -c "import mongordkit"
displayName: Check Python imports outside of pytest
- script: |
call activate mongo_rdkit
python -m pytest
displayName: Run pytest