From eec3cf419b8641b7c059a0758de6590370e4a148 Mon Sep 17 00:00:00 2001 From: Igor Susmelj Date: Tue, 14 May 2024 16:28:24 +0200 Subject: [PATCH] Attempt to fix codecov (#1542) --- .github/workflows/test.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 45dac72be..092f9b565 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -52,13 +52,15 @@ jobs: key: general-env-${{ runner.os }}-python-${{ matrix.python }}-${{ hashFiles('requirements/**') }} - name: Install Dependencies and lightly run: pip install -e '.[all]' + - name: Clean Previous Coverage Data + run: rm -f .coverage - name: Run Pytest run: | export LIGHTLY_SERVER_LOCATION="localhost:-1" - pip install pytest-cov + pip install pytest-cov==4.1.0 python -m pytest -s -v --runslow --cov=./lightly --cov-report=xml --ignore=./lightly/openapi_generated/ - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: fail_ci_if_error: false files: ./coverage.xml