File: main.yaml

package info (click to toggle)
dlpack 1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 472 kB
  • sloc: python: 277; ansic: 97; cpp: 64; makefile: 42; sh: 24
file content (35 lines) | stat: -rw-r--r-- 648 bytes parent folder | download | duplicates (3)
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
name: CI

on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main

jobs:
  Build:
    strategy:
      matrix:
        os: [ubuntu-latest, macOS-latest]

    runs-on: ${{ matrix.os }}

    steps:
    - uses: actions/checkout@v2

    - name: Setup Python
      run: |
        python3 -m pip install cpplint
    - name: Setup@Ubuntu
      if: startsWith(matrix.os, 'ubuntu')
      run: |
        sudo apt-get install -y doxygen wget graphviz unzip
    - name: Lint
      if: startsWith(matrix.os, 'ubuntu')
      run: |
        ./tests/scripts/task_lint.sh
    - name: Test
      run: |
        ./tests/scripts/task_build.sh