Skip to content

Commit 13b44aa

Browse files
committed
run tests in CI
1 parent 89e5455 commit 13b44aa

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/ci.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Codebase tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
env:
13+
XLA_FLAGS: --xla_gpu_enable_command_buffer=
14+
15+
jobs:
16+
test:
17+
strategy:
18+
matrix:
19+
runner: [ParallelHoss]
20+
runs-on: ${{ matrix.runner }}
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: Install apt packages
25+
uses: awalsh128/cache-apt-pkgs-action@latest
26+
with:
27+
packages: mesa-common-dev libegl1-mesa-dev libglfw3-dev libgl1-mesa-dev libglu1-mesa-dev ffmpeg
28+
version: 1.0
29+
30+
- uses: actions/setup-python@v4
31+
with:
32+
python-version: 3.11.5
33+
34+
- id: auth
35+
uses: google-github-actions/auth@v2
36+
with:
37+
credentials_json: "${{ secrets.ARTIFACT_REGISTRY_KEY }}"
38+
39+
- name: Set up Cloud SDK
40+
uses: google-github-actions/setup-gcloud@v2
41+
42+
- name: Install Python dependencies
43+
run: pip install -e .
44+
45+
- name: Download test assets
46+
run: b3d_pull
47+
48+
- name: Create test results directory
49+
run: mkdir -p assets/test_results
50+
51+
- name: Run Tests
52+
run: ./run_tests.sh

0 commit comments

Comments
 (0)