2020-09-10 23:32:25 +08:00
|
|
|
name: test-bindings
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-06-01 18:01:49 +08:00
|
|
|
branches: [main]
|
2020-09-10 23:32:25 +08:00
|
|
|
pull_request:
|
2021-06-01 18:01:49 +08:00
|
|
|
branches: [main]
|
2020-09-10 23:32:25 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
python_bindings:
|
2023-02-03 17:47:02 +08:00
|
|
|
name: Test GBM Python bindings on ${{ matrix.os }}
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ ubuntu-latest, macos-latest, windows-latest ]
|
2020-09-10 23:32:25 +08:00
|
|
|
|
|
|
|
steps:
|
2023-02-03 17:47:02 +08:00
|
|
|
- uses: actions/checkout@v3
|
2020-09-10 23:32:25 +08:00
|
|
|
- name: Set up Python
|
2023-02-03 17:47:02 +08:00
|
|
|
uses: actions/setup-python@v4
|
2020-09-10 23:32:25 +08:00
|
|
|
with:
|
2023-02-03 17:47:02 +08:00
|
|
|
python-version: 3.11
|
|
|
|
- name: Install GBM Python bindings on ${{ matrix.os}}
|
2020-09-10 23:32:25 +08:00
|
|
|
run:
|
2023-02-03 17:47:02 +08:00
|
|
|
python -m pip install wheel .
|
|
|
|
- name: Run bindings example on ${{ matrix.os }}
|
2020-09-10 23:32:25 +08:00
|
|
|
run:
|
|
|
|
python bindings/python/google_benchmark/example.py
|