forked from microsoft/Qcodes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
47 lines (44 loc) · 1.34 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
name: "QCoDeS CI"
trigger:
branches:
include:
- master
jobs:
- job: "run_the_tests"
pool:
vmImage: "vs2017-win2016"
steps:
# Conda Environment
# Create and activate a Conda environment.
- task: CondaEnvironment@1
inputs:
createCustomEnvironment: true
environmentName: qcodes
packageSpecs: 'python=3'
updateConda: true
- script: |
conda env update -n qcodes -f environment.yml
pip install -r test_requirements.txt
pip install -r docs_requirements.txt
pip install -e .
displayName: "Installation"
- script: |
mypy qcodes
displayName: "mypy"
- script: |
cd qcodes
python tests\dataset\legacy_DB_generation\generate_version_0.py
python tests\dataset\legacy_DB_generation\generate_version_1.py
displayName: "Generate db fixtures"
- script: |
cd qcodes
pytest --junitxml=test-results.xml --cov=qcodes --cov-report=xml --cov-report=html --cov-config=.coveragerc
displayName: "Pytest"
- script: |
cd docs
make.bat htmlapi
displayName: "docsbuild"
- task: PublishTestResults@1
inputs:
testResultsFiles: 'qcodes\test-*.xml'
testRunTitle: 'Publish test results'