Skip to content

Convert directory fbcode/surreal to use the Ruff Formatter #100

Convert directory fbcode/surreal to use the Ruff Formatter

Convert directory fbcode/surreal to use the Ruff Formatter #100

name: Setup and Test - Pixi
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: Build Hot3D on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./hot3d # default folder for all "run:" commands
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name : Setup repo
uses: actions/checkout@v4
with:
submodules: 'true'
- name : Setup pixi
uses: prefix-dev/[email protected]
with:
pixi-version: v0.23.0
run-install: false
- name: Python - Prepare environment
shell: bash
run: |
# prepare pixi environment
pixi install
- name: Python - Unit test
shell: pixi run bash {0}
run: |
export TEST_FOLDER="./data_loaders/tests/"
# Run all unit test in this folder
find data_loaders/tests -type f -name "*.py" -exec python3 -m unittest {} \;
- name : Python - Test dataset viewer
shell: pixi run bash {0}
run: |
rerun analytics disable
# TODO add viewer running functional test