forked from weecology/DeepForest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
43 lines (34 loc) · 1.04 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
# 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 pytest-azurepipelines yapf
pytest
#yapf -d --recursive deepforest/ --style=.style.yapf 2>&1
displayName: 'Pytests and sytle tests'
- bash: |
python3 setup.py sdist bdist_wheel
- task: PublishBuildArtifacts@1
inputs: {pathtoPublish: 'dist'}
displayName: 'Source distribution'