Pivot out of the repository so that we test the wheel. #459
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI (Bazel) | |
on: | |
push: | |
branches: [main] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
env: | |
BAZELISK_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/[email protected] | |
- uses: bazel-contrib/[email protected] | |
with: | |
bazelisk-version: '1.x' | |
- uses: actions/[email protected] | |
with: | |
python-version: '3.x' | |
- name: Prepare Python 3.x environment | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade mypy | |
python python/toolchains/generate.py | |
shell: bash | |
- run: .github/bazel.sh | |
shell: bash | |
# TODO(junyer): Run mypy as per https://github.com/google/re2/issues/496. |