Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Now with tpu CI? #123

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,25 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [openstack22]
os: [openstack22, tpu]
python: ["3.12"]
timeout-minutes: 500
steps:
- name: add llvm
run: |
if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
sudo apt-get update
sudo apt-get install -y git gcc g++ #python3 python3-dev python3-pip
#sudo python3 -m pip install --upgrade lit
#- run: python3 -m pip install --user numpy
sudo apt-get install -y git gcc g++
fi
- uses: actions/checkout@v3
with:
submodules: recursive

- run: sudo rm -rf ~/.cache/bazel ~/.cache/bazelisk

- run: |
if [ "${{matrix.os}}" == "openstack22" ]; then
sudo rm -rf ~/.cache/bazel ~/.cache/bazelisk
fi

- uses: bazel-contrib/[email protected]
name: Set up Bazel
with:
Expand All @@ -46,6 +47,11 @@ jobs:
- name: test
run: |
HERMETIC_PYTHON_VERSION=${{ matrix.python }} bazel test --test_output=errors ...
HERMETIC_PYTHON_VERSION=${{ matrix.python }} bazel test --cache_test_results=no //test:bench_vs_xla
HERMETIC_PYTHON_VERSION=${{ matrix.python }} bazel test --cache_test_results=no //test:llama
cat bazel-out/*/testlogs/test/llama/test.log
cp bazel-out/*/testlogs/test/llama/test.log llama.log


- name: Build Wheel
run: |
Expand All @@ -57,4 +63,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: Wheel-${{ matrix.os }}
path: "*.whl"
path: "*.{whl,log}"
1 change: 1 addition & 0 deletions test/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ py_test(
],
imports = ["."],
deps = TEST_DEPS,
timeout='long'
)

py_test(
Expand Down
Loading