forked from CURENT/andes
/
azure-pipelines-linux.yml
36 lines (31 loc) 路 1.05 KB
/
azure-pipelines-linux.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
# 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
jobs:
- job: linux
pool:
vmImage: ubuntu-latest
timeoutInMinutes: 360
strategy:
matrix:
linux_python3.8:
python.version: '3.8'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
displayName: 'Use Python $(python.version)'
- script: |
python -m pip install --upgrade pip
pip install .[dev,interop]
displayName: 'Install dependencies'
- script: |
pip install pytest pytest-azurepipelines
coverage run -m pytest # Run the tests and check for test coverage.
coverage report -m # Generate test coverage report.
codecov # Upload the report to codecov.
displayName: 'pytest and coverage'
- script: |
make -C docs html # Build the documentation.
displayName: 'make documentation'