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