Add workflow to exercise bindings (#1041)

* Initial version to try to run python bindings example

* python indent issue in setup.py

* better naming
This commit is contained in:
Dominic Hamon 2020-09-10 16:32:25 +01:00 committed by GitHub
parent 12e85b2eeb
commit df9e2948fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 10 deletions

24
.github/workflows/test_bindings.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: test-bindings
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
python_bindings:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install benchmark
run:
python setup.py install
- name: Run example bindings
run:
python bindings/python/google_benchmark/example.py