tests.yml 541 Bytes
Newer Older
Gao, Xiang's avatar
Gao, Xiang committed
1
queue:
2
3
  name: Hosted Ubuntu 1604
  timeoutInMinutes: 6000
Gao, Xiang's avatar
Gao, Xiang committed
4

5
6
7
8
9
10
trigger:
  batch: true
  branches:
    include:
    - master

Gao, Xiang's avatar
Gao, Xiang committed
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
variables:
  python.version: '3.7'

steps:

- task: UsePythonVersion@0
  displayName: 'Use Python $(python.version)'
  inputs:
    versionSpec: '$(python.version)'

- script: 'azure/install_dependencies.sh && pip install nose coverage codecov'
  displayName: 'Install dependencies'

- script: 'python setup.py nosetests'
  displayName: Unit tests
Gao, Xiang's avatar
Gao, Xiang committed
26
27
28

- script: 'codecov -t $(codecov.token)'
  displayName: Upload coverage