cuda-unit-test.yml 755 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

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
18
  - script: |
19
      SB_MICRO_PATH=$PWD/bin make cppbuild
20
    displayName: Build benchmarks
21
22
23
24
  - script: |
      python3 setup.py lint
    displayName: Run code lint
  - script: |
25
      SB_MICRO_PATH=$PWD/bin python3 setup.py test
26
    displayName: Run unit tests
27
    timeoutInMinutes: 10
28
  - script: |
29
      bash <(curl -s https://codecov.io/bash) -cF cuda-unit-test
30
    displayName: Report coverage results
31
32
    env:
      CODECOV_TOKEN: $(codecovToken)