Skip to content

Commit

Permalink
Test builds
Browse files Browse the repository at this point in the history
  • Loading branch information
aliberts committed Apr 25, 2024
1 parent 2155cbf commit c12712a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_docker_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
name: Build Docker images (scheduled)

on:
pull_request: # TODO(aliberts): for testing, delete before merge
branches:
- main
# pull_request: # TODO(aliberts): for testing, delete before merge
# branches:
# - main
workflow_dispatch:
workflow_call:
schedule:
Expand Down
23 changes: 8 additions & 15 deletions .github/workflows/nightly-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,26 @@
name: Self-hosted runner with slow tests (scheduled)

on:
# pull_request: # TODO(aliberts): for testing, delete before merge
# branches:
# - main
pull_request: # TODO(aliberts): for testing, delete before merge
branches:
- main
workflow_dispatch:
schedule:
- cron: "0 2 * * *"

env:
RUN_SLOW: "yes"
IS_GITHUB_CI: "1"
# To be able to run tests on CUDA 12.2
NVIDIA_DISABLE_REQUIRE: "1"
# SLACK_API_TOKEN: ${{ secrets.SLACK_API_TOKEN }}
DATA_DIR: tests/data
# SLACK_API_TOKEN: ${{ secrets.SLACK_API_TOKEN }}


jobs:
run_all_tests_cpu:
strategy:
fail-fast: false
runs-on: ubuntu-latest
env:
CUDA_VISIBLE_DEVICES: "0"
TEST_TYPE: "single_gpu"
container:
image: huggingface/lerobot-cpu:latest
options: --shm-size "16gb"
credentials:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
Expand All @@ -52,10 +47,9 @@ jobs:
env:
CUDA_VISIBLE_DEVICES: "0"
TEST_TYPE: "single_gpu"
DATA_DIR: tests/data
container:
image: huggingface/lerobot-gpu:latest
options: --gpus all --shm-size "16gb" -e NVIDIA_DISABLE_REQUIRE=true -e DATA_DIR=tests/data/
options: --gpus all --shm-size "16gb"
credentials:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
Expand All @@ -69,8 +63,7 @@ jobs:
- name: Test
run: pytest -v --cov=./lerobot --cov-report=xml --disable-warnings tests
- name: Tests end-to-end
run: |
make test-ete
run: make test-ete
- name: Tailscale Wait
if: ${{ failure() || runner.debug == '1' }}
uses: huggingface/tailscale-action@v1
Expand Down

0 comments on commit c12712a

Please sign in to comment.