From 59e56886e2bb96e8f684cfe8547922ebd5809b9f Mon Sep 17 00:00:00 2001 From: Simon Alibert Date: Tue, 26 Mar 2024 17:23:11 +0100 Subject: [PATCH] WIP add code coverage --- .github/workflows/test.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 86709fc5..c26234ab 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -109,15 +109,25 @@ jobs: run: poetry install --no-interaction #---------------------------------------------- - # run tests + # run tests & coverage #---------------------------------------------- - name: Run tests env: LEROBOT_TESTS_DEVICE: cpu run: | 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 run: | source .venv/bin/activate