blob: da4ea56e3aae494a1779bbda6c3ae917465309e7 [file] [log] [blame]
name: Verify PR
on: [pull_request]
jobs:
run-bazel-tests:
name: "Run Bazel tests"
runs-on: ubuntu-latest
strategy:
matrix:
cpp-compiler: ["clang", "gcc"]
steps:
- uses: actions/checkout@v4
- uses: bazel-contrib/setup-bazel@0.8.5
with:
bazelisk-cache: true
disk-cache: "verify-pr:run-bazel-tests:${{ matrix.cpp-compiler }}"
repository-cache: true
- run: echo "CC=${{ matrix.cpp-compiler }}" >> $GITHUB_ENV
- run: bazel test ...
check-formatting:
name: "Check Python formatting"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
with:
options: "--check --verbose"
version: "24.8.0"