From d7c890263bff631f497192a61d5493e0929da762 Mon Sep 17 00:00:00 2001 From: AlexWaygood Date: Sun, 8 Oct 2023 10:54:09 +0200 Subject: [PATCH] Bump to latest version of `coverage` (requires ditching `coveralls` for now) --- .github/workflows/test.yml | 19 +------------------ README.md | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 20 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3f8c6bc0..b7c113ec 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,7 +35,6 @@ env: # see https://github.com/python/mypy/issues/13817 TERM: xterm-256color GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COVERALLS_PARALLEL: true concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} @@ -61,28 +60,12 @@ jobs: python-version: ${{ matrix.python-version }} allow-prereleases: true - run: pip install "wheel<1" - - run: pip install "coveralls>=3.3" -e .[pytest] + - run: pip install -e .[pytest] - run: pip freeze --all - name: Run tests under coverage run: | coverage run -m pytest --doctest-modules coverage report --no-skip-covered - - name: Upload coverage to coveralls - if: github.repository == 'AlexWaygood/typeshed-stats' - env: - COVERALLS_FLAG_NAME: ${{ matrix.os }}-${{ matrix.python-version }} - run: coveralls --service=github - - coveralls-finish: - name: Indicate completion to coveralls.io - needs: pytest-tests - if: github.repository == 'AlexWaygood/typeshed-stats' - runs-on: ubuntu-latest - container: python:3-slim - steps: - - run: | - pip install "coveralls>=3.3" - coveralls --service=github --finish create-issue-on-failure: name: Create an issue if daily test failed diff --git a/README.md b/README.md index 40903265..076650df 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@
-[![website](https://img.shields.io/website?down_color=red&down_message=Offline&style=for-the-badge&up_color=green&up_message=Running&url=https%3A%2F%2Falexwaygood.github.io%2Ftypeshed-stats%2F)](https://alexwaygood.github.io/typeshed-stats/)[![build status](https://img.shields.io/github/actions/workflow/status/AlexWaygood/typeshed-stats/test.yml?branch=main&label=Tests&style=for-the-badge)](https://github.com/AlexWaygood/typeshed-stats/actions/workflows/test.yml)[![Coveralls](https://img.shields.io/coverallsCoverage/github/AlexWaygood/typeshed-stats?style=for-the-badge)](https://coveralls.io/github/AlexWaygood/typeshed-stats) +[![website](https://img.shields.io/website?down_color=red&down_message=Offline&style=for-the-badge&up_color=green&up_message=Running&url=https%3A%2F%2Falexwaygood.github.io%2Ftypeshed-stats%2F)](https://alexwaygood.github.io/typeshed-stats/)[![build status](https://img.shields.io/github/actions/workflow/status/AlexWaygood/typeshed-stats/test.yml?branch=main&label=Tests&style=for-the-badge)](https://github.com/AlexWaygood/typeshed-stats/actions/workflows/test.yml)
[![Checked with mypy](https://img.shields.io/badge/mypy-checked-blue?style=for-the-badge)](http://mypy-lang.org/)[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg?style=for-the-badge)](https://github.com/psf/black)[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=for-the-badge&labelColor=ef8336)](https://pycqa.github.io/isort/)[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white&style=for-the-badge)](https://pre-commit.ci)
diff --git a/pyproject.toml b/pyproject.toml index ce76e75a..fb0c6187 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,7 +65,7 @@ pytest = [ "typeshed-stats[rich]", "beautifulsoup4>=4,<5", "covdefaults==2.3.0", - "coverage==6.5.0", + "coverage==7.3.2", "Markdown>=3,<4", "pytest==7.4.2", "pytest-antilru==1.1.1",