-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Codebase tests | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
env: | ||
XLA_FLAGS: --xla_gpu_enable_command_buffer= | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
runner: [ParallelHoss] | ||
runs-on: ${{ matrix.runner }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install apt packages | ||
uses: awalsh128/cache-apt-pkgs-action@latest | ||
with: | ||
packages: mesa-common-dev libegl1-mesa-dev libglfw3-dev libgl1-mesa-dev libglu1-mesa-dev ffmpeg | ||
version: 1.0 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11.5 | ||
|
||
- id: auth | ||
uses: google-github-actions/auth@v2 | ||
with: | ||
credentials_json: "${{ secrets.ARTIFACT_REGISTRY_KEY }}" | ||
|
||
- name: Set up Cloud SDK | ||
uses: google-github-actions/setup-gcloud@v2 | ||
|
||
- name: Install Python dependencies | ||
run: pip install -e . | ||
|
||
- name: Download test assets | ||
run: b3d_pull | ||
|
||
- name: Create test results directory | ||
run: mkdir -p assets/test_results | ||
|
||
- name: Run Tests | ||
run: ./run_tests.sh |