diff --git a/.github/workflows/conda-test.yml b/.github/workflows/conda-test.yml index ec9fe22a..8575ed0d 100644 --- a/.github/workflows/conda-test.yml +++ b/.github/workflows/conda-test.yml @@ -1,4 +1,4 @@ -name: Tests & Coverage +name: Tests with conda on: [ push, pull_request ] @@ -67,11 +67,4 @@ jobs: refiner-bop-ycbv-pbr--604090 - name: Run tests - run: | - pip install coverage - coverage run --source=happypose -m unittest - coverage xml - - - uses: codecov/codecov-action@v3 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + run: python -m unittest diff --git a/.github/workflows/poetry-test.yml b/.github/workflows/poetry-test.yml index 6fa757c1..c2cbce24 100644 --- a/.github/workflows/poetry-test.yml +++ b/.github/workflows/poetry-test.yml @@ -1,4 +1,4 @@ -name: Tests with poetry +name: Tests with poetry + Coverage on: [ push, pull_request ] @@ -46,5 +46,11 @@ jobs: refiner-bop-ycbv-pbr--604090 - name: Run tests - run: | - poetry run python -m unittest + run: poetry run coverage run --source=happypose -m unittest + + - name: Process coverage + run: poetry run coverage xml + + - uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}