Skip to content

Commit

Permalink
Test fixed builds
Browse files Browse the repository at this point in the history
  • Loading branch information
aliberts committed Apr 19, 2024
1 parent 5952e3f commit bd754e2
Showing 1 changed file with 39 additions and 39 deletions.
78 changes: 39 additions & 39 deletions .github/workflows/nightly-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
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 * * *"
Expand Down Expand Up @@ -46,49 +46,49 @@ jobs:
ls -glh /opt/venv/
ls -glh /opt/venv/lib
ls -glh /opt/venv/lib/python3.10/site-packages
- name: Pip install
run: |
source activate peft
pip install ".[test, aloha, xarm, pusht]"
# - name: Pip install
# run: |
# source activate peft
# pip install ".[test, aloha, xarm, pusht]"
- name: Test
env:
DATA_DIR: tests/data
MUJOCO_GL: egl
run: |
pytest -v --cov=./lerobot --cov-report=xml tests
# run_all_tests_single_gpu:
# strategy:
# fail-fast: false
# runs-on: [single-gpu, nvidia-gpu, t4, ci]
# env:
# CUDA_VISIBLE_DEVICES: "0"
# TEST_TYPE: "single_gpu"
# container:
# image: huggingface/lerobot-gpu:latest
# options: --gpus all --shm-size "16gb" -e NVIDIA_DISABLE_REQUIRE=true
# credentials:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_PASSWORD }}
# defaults:
# run:
# shell: bash
# steps:
# # - uses: actions/checkout@v4
# - name: Check
# run: |
# pwd
# df -h
# ls -glh
# du -sh
# python --version
# which python
# - name: Test
# env:
# DATA_DIR: tests/data
# MUJOCO_GL: egl
# run: |
# pytest -v --cov=./lerobot --cov-report=xml tests
run_all_tests_single_gpu:
strategy:
fail-fast: false
runs-on: [single-gpu, nvidia-gpu, t4, ci]
env:
CUDA_VISIBLE_DEVICES: "0"
TEST_TYPE: "single_gpu"
container:
image: huggingface/lerobot-gpu:latest
options: --gpus all --shm-size "16gb" -e NVIDIA_DISABLE_REQUIRE=true
credentials:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
defaults:
run:
shell: bash
steps:
# - uses: actions/checkout@v4
- name: Check
run: |
pwd
df -h
ls -glh
du -sh
python --version
which python
- name: Test
env:
DATA_DIR: tests/data
MUJOCO_GL: egl
run: |
pytest -v --cov=./lerobot --cov-report=xml tests
# - name: Generate Report
# if: always()
Expand Down

0 comments on commit bd754e2

Please sign in to comment.