forked from fsspec/adlfs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
57 lines (47 loc) · 1.55 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
trigger:
branches:
include:
- master
- refs/tags/*
pool:
vmImage: 'ubuntu-latest'
jobs:
- job: Lint
steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- script: |
conda install -y -c conda-forge python=3 pre-commit
pre-commit install --install-hooks
displayName: 'Install dependencies'
- script: |
pre-commit run --all-files --show-diff-on-failure
displayName: 'Lint'
- job: Test
strategy:
matrix:
EARLIEST:
REQUIREMENTS_FILE: requirements/earliest.txt
LATEST:
REQUIREMENTS_FILE: requirements/latest.txt
DEV:
REQUIREMENTS_FILE: requirements/dev.txt
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 $(REQUIREMENTS_FILE)
displayName: 'Install dependencies'
- script: |
pytest --host="localhost:10000" adlfs/tests --junitxml=junit/test-results.xml --cov=. --cov-report=xml
displayName: 'Run Tests'
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/test-*.xml'
testRunTitle: 'Publish test results for Python $(REQUIREMENTS_FILE)'
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'