forked from tangger/lerobot
TOREMOVE: isolate test
This commit is contained in:
132
.github/workflows/test.yml
vendored
132
.github/workflows/test.yml
vendored
@@ -25,45 +25,45 @@ on:
|
|||||||
- ".cache/**"
|
- ".cache/**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pytest:
|
# pytest:
|
||||||
name: Pytest
|
# name: Pytest
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
env:
|
# env:
|
||||||
DATA_DIR: tests/data
|
# DATA_DIR: tests/data
|
||||||
MUJOCO_GL: egl
|
# MUJOCO_GL: egl
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v4
|
# - uses: actions/checkout@v4
|
||||||
with:
|
# with:
|
||||||
lfs: true # Ensure LFS files are pulled
|
# lfs: true # Ensure LFS files are pulled
|
||||||
|
|
||||||
- name: Install apt dependencies
|
# - name: Install apt dependencies
|
||||||
# portaudio19-dev is needed to install pyaudio
|
# # portaudio19-dev is needed to install pyaudio
|
||||||
run: |
|
# run: |
|
||||||
sudo apt-get update && \
|
# sudo apt-get update && \
|
||||||
sudo apt-get install -y libegl1-mesa-dev ffmpeg portaudio19-dev
|
# sudo apt-get install -y libegl1-mesa-dev ffmpeg portaudio19-dev
|
||||||
|
|
||||||
- name: Install poetry
|
# - name: Install poetry
|
||||||
run: |
|
# run: |
|
||||||
pipx install poetry && poetry config virtualenvs.in-project true
|
# pipx install poetry && poetry config virtualenvs.in-project true
|
||||||
echo "${{ github.workspace }}/.venv/bin" >> $GITHUB_PATH
|
# echo "${{ github.workspace }}/.venv/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Set up Python 3.10
|
# - name: Set up Python 3.10
|
||||||
uses: actions/setup-python@v5
|
# uses: actions/setup-python@v5
|
||||||
with:
|
# with:
|
||||||
python-version: "3.10"
|
# python-version: "3.10"
|
||||||
cache: "poetry"
|
# cache: "poetry"
|
||||||
|
|
||||||
- name: Install poetry dependencies
|
# - name: Install poetry dependencies
|
||||||
run: |
|
# run: |
|
||||||
poetry install --all-extras
|
# poetry install --all-extras
|
||||||
|
|
||||||
- name: Test with pytest
|
# - name: Test with pytest
|
||||||
run: |
|
# run: |
|
||||||
pytest tests -v --cov=./lerobot --durations=0 \
|
# pytest tests -v --cov=./lerobot --durations=0 \
|
||||||
-W ignore::DeprecationWarning:imageio_ffmpeg._utils:7 \
|
# -W ignore::DeprecationWarning:imageio_ffmpeg._utils:7 \
|
||||||
-W ignore::UserWarning:torch.utils.data.dataloader:558 \
|
# -W ignore::UserWarning:torch.utils.data.dataloader:558 \
|
||||||
-W ignore::UserWarning:gymnasium.utils.env_checker:247 \
|
# -W ignore::UserWarning:gymnasium.utils.env_checker:247 \
|
||||||
&& rm -rf tests/outputs outputs
|
# && rm -rf tests/outputs outputs
|
||||||
|
|
||||||
pytest-minimal:
|
pytest-minimal:
|
||||||
name: Pytest (minimal install)
|
name: Pytest (minimal install)
|
||||||
@@ -95,46 +95,46 @@ jobs:
|
|||||||
|
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
run: |
|
run: |
|
||||||
pytest tests -v --cov=./lerobot --durations=0 \
|
pytest 'tests/test_control_robot.py::test_record_and_replay_and_policy[koch-True]' -v --cov=./lerobot --durations=0 \
|
||||||
-W ignore::DeprecationWarning:imageio_ffmpeg._utils:7 \
|
-W ignore::DeprecationWarning:imageio_ffmpeg._utils:7 \
|
||||||
-W ignore::UserWarning:torch.utils.data.dataloader:558 \
|
-W ignore::UserWarning:torch.utils.data.dataloader:558 \
|
||||||
-W ignore::UserWarning:gymnasium.utils.env_checker:247 \
|
-W ignore::UserWarning:gymnasium.utils.env_checker:247 \
|
||||||
&& rm -rf tests/outputs outputs
|
&& rm -rf tests/outputs outputs
|
||||||
|
|
||||||
|
|
||||||
end-to-end:
|
# end-to-end:
|
||||||
name: End-to-end
|
# name: End-to-end
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
env:
|
# env:
|
||||||
DATA_DIR: tests/data
|
# DATA_DIR: tests/data
|
||||||
MUJOCO_GL: egl
|
# MUJOCO_GL: egl
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v4
|
# - uses: actions/checkout@v4
|
||||||
with:
|
# with:
|
||||||
lfs: true # Ensure LFS files are pulled
|
# lfs: true # Ensure LFS files are pulled
|
||||||
|
|
||||||
- name: Install apt dependencies
|
# - name: Install apt dependencies
|
||||||
# portaudio19-dev is needed to install pyaudio
|
# # portaudio19-dev is needed to install pyaudio
|
||||||
run: |
|
# run: |
|
||||||
sudo apt-get update && \
|
# sudo apt-get update && \
|
||||||
sudo apt-get install -y libegl1-mesa-dev portaudio19-dev
|
# sudo apt-get install -y libegl1-mesa-dev portaudio19-dev
|
||||||
|
|
||||||
- name: Install poetry
|
# - name: Install poetry
|
||||||
run: |
|
# run: |
|
||||||
pipx install poetry && poetry config virtualenvs.in-project true
|
# pipx install poetry && poetry config virtualenvs.in-project true
|
||||||
echo "${{ github.workspace }}/.venv/bin" >> $GITHUB_PATH
|
# echo "${{ github.workspace }}/.venv/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Set up Python 3.10
|
# - name: Set up Python 3.10
|
||||||
uses: actions/setup-python@v5
|
# uses: actions/setup-python@v5
|
||||||
with:
|
# with:
|
||||||
python-version: "3.10"
|
# python-version: "3.10"
|
||||||
cache: "poetry"
|
# cache: "poetry"
|
||||||
|
|
||||||
- name: Install poetry dependencies
|
# - name: Install poetry dependencies
|
||||||
run: |
|
# run: |
|
||||||
poetry install --all-extras
|
# poetry install --all-extras
|
||||||
|
|
||||||
- name: Test end-to-end
|
# - name: Test end-to-end
|
||||||
run: |
|
# run: |
|
||||||
make test-end-to-end \
|
# make test-end-to-end \
|
||||||
&& rm -rf outputs
|
# && rm -rf outputs
|
||||||
|
|||||||
Reference in New Issue
Block a user