benchmark/.github/workflows/test_bindings.yml

29 lines
690 B
YAML
Raw Normal View History

name: test-bindings
on:
push:
2021-06-01 18:01:49 +08:00
branches: [main]
pull_request:
2021-06-01 18:01:49 +08:00
branches: [main]
jobs:
python_bindings:
name: Test GBM Python bindings on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
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