Skip to content

Commit

Permalink
Update branch to main and newer OS versions
Browse files Browse the repository at this point in the history
Update to Ubuntu 22.04 and macOS 12 to fix CI.

Fix `*.ipynb` generation by calling `python` on the CLI rather than having the
script invoke `/usr/bin/python` manually, which no longer exists on macOS
(disappeared sometime after macOS 10.15).

Add `VERBOSE=2` to the `bazel test` command to get more useful output when tests
fail.
  • Loading branch information
mbrukman committed May 24, 2024
1 parent 74847e7 commit cd5fd9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ name: "Build & test"

on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ master ]
branches: [ main ]

jobs:
build:
strategy:
matrix:
os: [ 'ubuntu-20.04', 'macos-10.15' ]
os: [ 'ubuntu-22.04', 'macos-12' ]

name: Running on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand All @@ -45,4 +45,4 @@ jobs:
run: bazel build --config=ci //...

- name: Run tests
run: bazel test --config=ci //...
run: bazel test --config=ci --test_env=VERBOSE=2 //...
2 changes: 1 addition & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ EOF
;;

*.ipynb)
printLicenseHashComment | $(dirname $0)/ipynb.py
printLicenseHashComment | python $(dirname $0)/ipynb.py
;;

*.rb)
Expand Down

0 comments on commit cd5fd9b

Please sign in to comment.