forked from weecology/DeepForest
/
azure-pipelines.yml
42 lines (33 loc) · 993 Bytes
/
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
# 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 on pull requests from main
pr:
- main
trigger:
branches:
include:
- refs/tags/*
variables:
CIBW_SKIP: 'cp27-* cp35-*'
jobs:
- job: Testing
pool:
vmImage: 'ubuntu-latest'
steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- script: |
python -m pip install --upgrade pip
pip install .
displayName: 'Create Conda environment for DeepForest'
- script: |
pip install pytest tensorboard pytest-azurepipelines yapf
pytest -v
displayName: 'Pytests'
- bash: |
python3 setup.py sdist bdist_wheel
- task: PublishBuildArtifacts@1
inputs: {pathtoPublish: 'dist'}
displayName: 'Source distribution'