aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/test_bindings.yml
blob: e01bb7b0146060e9dd82ca3c8c5e46b7bd42a2d0 (plain)
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
name: test-bindings

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  python_bindings:
    name: Test GBM Python bindings on ${{ matrix.os }}
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [ ubuntu-latest, macos-latest, windows-2019 ]

    steps:
      - uses: actions/checkout@v3
      - name: Set up Python
        uses: actions/setup-python@v4
        with:
          python-version: 3.11
      - name: Install GBM Python bindings on ${{ matrix.os}}
        run:
          python -m pip install wheel .
      - name: Run bindings example on ${{ matrix.os }}
        run:
          python bindings/python/google_benchmark/example.py