From f91861853b811812a2ed74417c4df9ed493c8864 Mon Sep 17 00:00:00 2001 From: Wu Tingfeng Date: Thu, 25 Jan 2024 17:07:38 +0800 Subject: [PATCH] Use coveralls --- .github/workflows/ci.yml | 4 ++-- README.md | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a353eb0..d12229f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,6 @@ jobs: run: pip install -r requirements.txt - name: Test run: pytest --cov - - name: Upload coverage to Codecov (ubuntu-latest only) + - name: Upload coverage to Coveralls if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12' - uses: codecov/codecov-action@v3 + uses: coverallsapp/github-action@v2 diff --git a/README.md b/README.md index 31d2c69..9502186 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,7 @@ # get_ips ![Python](https://img.shields.io/badge/Python-FFD43B?style=for-the-badge&logo=python&logoColor=blue) - -[![Codecov Coverage](https://img.shields.io/codecov/c/github/elliotwutingfeng/get_ips?color=bright-green&logo=codecov&style=for-the-badge&token=63a1xj1fbI)](https://codecov.io/gh/elliotwutingfeng/get_ips) - +[![Coveralls](https://img.shields.io/coverallsCoverage/github/elliotwutingfeng/get_ips?logo=coveralls&style=for-the-badge)](https://coveralls.io/github/elliotwutingfeng/get_ips?branch=main) [![GitHub license](https://img.shields.io/badge/LICENSE-BSD--3--CLAUSE-GREEN?style=for-the-badge)](LICENSE) Get IPv4 and IPv6 addresses of hostnames using [socket.getaddrinfo()](https://docs.python.org/3/library/socket.html#socket.getaddrinfo).