Skip to content

Commit

Permalink
run tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sritchie committed Jun 25, 2024
1 parent 89e5455 commit 13b44aa
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/ci.yml
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

0 comments on commit 13b44aa

Please sign in to comment.