From dca72ce14877bb62946c29c4e92d727b8d8d3ef4 Mon Sep 17 00:00:00 2001 From: Michael Szell Date: Sat, 10 Oct 2026 14:01:13 +0200 Subject: [PATCH] Add codecov, disable test caching --- .github/workflows/test.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d0811ff..daf6e37 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -44,8 +44,8 @@ jobs: with: create-args: python=${{ matrix.python-version }} environment-file: environment-dev.yml - cache-environment: true - cache-environment-key: W${{ env.WEEK }} + cache-environment: false + # cache-environment-key: W${{ env.WEEK }} run-tests: needs: caching @@ -78,12 +78,18 @@ jobs: with: create-args: python=${{ matrix.python-version }} environment-file: environment-dev.yml - cache-environment: true - cache-environment-key: W${{ env.WEEK }} + cache-environment: false + # cache-environment-key: W${{ env.WEEK }} - name: Install bikenetlib run: pip install --no-build-isolation --no-deps -e . - name: "Run tests ${{ matrix.submodule.name }}" run: | - pytest ${{ matrix.submodule.pytest_args }} + pytest ${{ matrix.submodule.pytest_args }} --cov --cov-branch --cov-report=xml + + - name: Upload results to Codecov + uses: codecov/codecov-action@v7 + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: BikeNetKit/BikeNetLib \ No newline at end of file