diff --git a/.github/workflows/fast_tests.yml b/.github/workflows/fast_tests.yml index ad4938970..f5ec48463 100644 --- a/.github/workflows/fast_tests.yml +++ b/.github/workflows/fast_tests.yml @@ -60,12 +60,17 @@ jobs: runs-on: ubuntu-latest env: MUJOCO_GL: egl + HF_HOME: /mnt/cache/.cache/huggingface + HF_LEROBOT_HOME: /mnt/cache/.cache/huggingface/lerobot steps: - uses: actions/checkout@v4 with: persist-credentials: false lfs: true + - name: Setup /mnt storage + run: sudo chown -R $USER:$USER /mnt + # TODO(Steven): Evaluate the need of these dependencies - name: Install apt dependencies run: | @@ -80,8 +85,14 @@ jobs: version: ${{ env.UV_VERSION }} python-version: ${{ env.PYTHON_VERSION }} + - name: Check disk usage + run: df -h + - name: Install lerobot with test extras run: uv sync --extra "test" + - name: Check disk usage + run: df -h + - name: Run pytest run: uv run pytest tests -vv --maxfail=10 diff --git a/.github/workflows/full_tests.yml b/.github/workflows/full_tests.yml index 36cc758f5..46fbbda3f 100644 --- a/.github/workflows/full_tests.yml +++ b/.github/workflows/full_tests.yml @@ -58,18 +58,16 @@ jobs: github.event_name == 'workflow_dispatch' env: MUJOCO_GL: egl + HF_HOME: /mnt/cache/.cache/huggingface + HF_LEROBOT_HOME: /mnt/cache/.cache/huggingface/lerobot steps: - uses: actions/checkout@v4 with: lfs: true persist-credentials: false - - name: Free disk space - run: | - sudo rm -rf /usr/share/dotnet - sudo rm -rf /usr/local/lib/android - sudo rm -rf /opt/ghc - docker system prune -af || true + - name: Setup /mnt storage + run: sudo chown -R $USER:$USER /mnt - name: Install apt dependencies run: | @@ -87,12 +85,21 @@ jobs: - name: Install lerobot with all extras run: uv sync --all-extras --no-extra groot # TODO(Steven): Make flash-attn optional + - name: Check disk usage + run: df -h + - name: Run pytest (all extras) run: uv run pytest tests -vv --maxfail=10 + - name: Check disk usage + run: df -h + - name: Run end-to-end tests run: uv run make test-end-to-end + - name: Check disk usage + run: df -h + # This job builds a GPU enabled image for testing # It runs everytime a PR is approved or a push to main # TODO(Steven): For now we skip this job for community PRs diff --git a/.github/workflows/unbound_deps_tests.yml b/.github/workflows/unbound_deps_tests.yml index b6fc5ea2f..676c1072d 100644 --- a/.github/workflows/unbound_deps_tests.yml +++ b/.github/workflows/unbound_deps_tests.yml @@ -45,11 +45,15 @@ jobs: runs-on: ubuntu-latest env: MUJOCO_GL: egl + HF_HOME: /mnt/cache/.cache/huggingface + HF_LEROBOT_HOME: /mnt/cache/.cache/huggingface/lerobot steps: - uses: actions/checkout@v4 with: lfs: true persist-credentials: false + - name: Setup /mnt storage + run: sudo chown -R $USER:$USER /mnt - name: Install apt dependencies run: |