cuda-unit-test.yml 641 Bytes
Newer Older
1
2
3
4
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

trigger:
5
  - main
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

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
24
    timeoutInMinutes: 10
25
  - script: |
26
      bash <(curl -s https://codecov.io/bash) -cF cuda-unit-test
27
    displayName: Report coverage results
28
29
    env:
      CODECOV_TOKEN: $(codecovToken)