Skip to content

trial-mode memory-ablation control + vast.ai satellite-agent handoff doc #97

trial-mode memory-ablation control + vast.ai satellite-agent handoff doc

trial-mode memory-ablation control + vast.ai satellite-agent handoff doc #97

Workflow file for this run

name: Unit tests
on:
pull_request:
branches: [ main ]
push:
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Free up disk space
run: |
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc
sudo apt-get clean
sudo rm -rf ~/.cache/pip /tmp/* /var/tmp/*
- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get install -y build-essential cmake
- name: Upgrade pip
run: python -m pip install -U pip
- name: Install pufferlib
run: pip install -e .[cpu] --no-cache-dir pytest
env:
TMPDIR: ${{ runner.temp }}/build
PIP_NO_CACHE_DIR: 1
- name: Compile C extensions
run: python setup.py build_ext --inplace --force
- name: Run C ini parsing tests
run: |
chmod +x tests/ini_parser/build_n_test.sh
./tests/ini_parser/build_n_test.sh
- name: Run python ini parsing tests
run: python tests/test_drive_config.py
- name: Run pytest suite (conditioning, map_dir, render contracts)
run: |
pytest \
tests/test_drive_conditioning.py \
tests/test_map_dir_flow.py \
tests/test_render_pipeline.py \
-v --tb=short