Skip to content

Commit a85fae4

Browse files
authored
Merge pull request #16 from UCLCheminformatics/azure-pipelines
Set up CI with Azure Pipelines
2 parents c46d9ee + ba509c3 commit a85fae4

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

azure-pipelines.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
Python36:
14+
python.version: '3.6'
15+
Python37:
16+
python.version: '3.7'
17+
Python38:
18+
python.version: '3.8'
19+
20+
steps:
21+
- bash: echo "##vso[task.prependpath]$CONDA/bin"
22+
displayName: Add conda to PATH
23+
24+
- bash: |
25+
conda config --set always_yes yes --set changeps1 no
26+
conda config --add channels conda-forge
27+
conda install -q mamba
28+
mamba create -q -n $(conda_env) python=$(python.version)
29+
displayName: Create conda environment
30+
31+
- bash: |
32+
source activate $(conda_env)
33+
mamba install -q --file ./requirements.txt
34+
python setup.py install
35+
displayName: Install package
36+
37+
- bash: |
38+
source activate $(conda_env)
39+
mamba install -q pytest pytest-cov
40+
pytest --cov=scaffoldgraph -v -s tests/
41+
displayName: Run tests

0 commit comments

Comments
 (0)