Skip to content

Add Bazel Python library and test. #101

Add Bazel Python library and test.

Add Bazel Python library and test. #101

Workflow file for this run

name: Bazel
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: bazelbuild/setup-bazelisk@v3
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: bazel build //:opencc
- run: bazel test --test_output=all //src/... //data/... //test/... //python/...