From c2eadcc0abe0e3030b224245aa13888b5ec95932 Mon Sep 17 00:00:00 2001 From: kedhammar Date: Fri, 28 Jun 2024 15:43:29 +0200 Subject: [PATCH] try new codecov workflow apply pytest-cov, try different codecov workflow try new codecov action correct syntax --- .github/workflows/test-code.yml | 11 ++++------- requirements-dev.txt | 1 + 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test-code.yml b/.github/workflows/test-code.yml index bf7809d..0369f7e 100644 --- a/.github/workflows/test-code.yml +++ b/.github/workflows/test-code.yml @@ -22,11 +22,8 @@ jobs: run: pip install -e . - name: pytest # Options are configured in pyproject.toml - run: pytest + run: pytest --cov=genologics --cov-report=xml - name: CodeCov - run: | - # Replace `linux` below with the appropriate OS - # Options are `alpine`, `linux`, `macos`, `windows` - curl -Os https://uploader.codecov.io/latest/linux/codecov - chmod +x codecov - ./codecov -t ${{ secrets.CODECOV_TOKEN }} + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/requirements-dev.txt b/requirements-dev.txt index 8885285..76d34af 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -2,6 +2,7 @@ mock mypy pipreqs pytest +pytest-cov ruff sphinxcontrib-programoutput types-requests