cuda-unit-test.yml 626 Bytes
Newer Older
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
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

trigger:
  - master
  - dev

pool:
  name: SuperBench CI
  vmImage: ubuntu-latest

container:
  image: nvcr.io/nvidia/pytorch:20.12-py3

steps:
  - script: |
      python3 -m pip install .[test,torch]
    displayName: Install dependencies
  - script: |
      python3 setup.py lint
    displayName: Run code lint
  - script: |
      python3 setup.py test
    displayName: Run unit tests
  - script: |
26
      bash <(curl -s https://codecov.io/bash) -cF cuda-unit-test
27
    displayName: Report coverage results
28
29
    env:
      CODECOV_TOKEN: $(codecovToken)