WIP add code coverage

This commit is contained in:
Simon Alibert 2024-03-26 17:23:11 +01:00
parent 2bf31bb082
commit 59e56886e2
1 changed files with 12 additions and 2 deletions

View File

@ -109,15 +109,25 @@ jobs:
run: poetry install --no-interaction run: poetry install --no-interaction
#---------------------------------------------- #----------------------------------------------
# run tests # run tests & coverage
#---------------------------------------------- #----------------------------------------------
- name: Run tests - name: Run tests
env: env:
LEROBOT_TESTS_DEVICE: cpu LEROBOT_TESTS_DEVICE: cpu
run: | run: |
source .venv/bin/activate source .venv/bin/activate
pytest --cov=lerobot tests pytest --cov=./lerobot --cov-report=xml tests
# TODO(aliberts): Link with HF Codecov account
# - name: Upload coverage reports to Codecov with GitHub Action
# uses: codecov/codecov-action@v4
# with:
# files: ./coverage.xml
# verbose: true
#----------------------------------------------
# run end-to-end tests
#----------------------------------------------
- name: Test train ACT on ALOHA end-to-end - name: Test train ACT on ALOHA end-to-end
run: | run: |
source .venv/bin/activate source .venv/bin/activate