/
azure-pipelines.yml
39 lines (32 loc) · 1 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
trigger:
branches:
include:
- master
- refs/tags/*
jobs:
- job: RunUnitTests
pool:
vmImage: 'ubuntu-latest'
steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- script: |
conda install -y -c conda-forge python=3 pre-commit
pip install -r dev-requirements.txt
displayName: 'Install dependencies'
- script: |
pytest --host="localhost:10000" adlfs/tests --junitxml=junit/test-results.xml --cov=. --cov-report=xml
displayName: 'Run Tests'
- script: |
pre-commit install --install-hooks
pre-commit run --all-files --show-diff-on-failure
displayName: 'Lint'
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/test-*.xml'
testRunTitle: 'Publish test results for Python $(python.version)'
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'