From aabdfc597fc736b65d019b58fee7a0bd3e7984a8 Mon Sep 17 00:00:00 2001 From: Sheng Date: Sun, 9 Apr 2023 14:31:18 +0800 Subject: [PATCH] Updated workflows --- .github/workflows/python.yml | 15 +++++++++++---- README.md | 2 +- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index beeff7f..75e7067 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -16,13 +16,20 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] # , "pypy-3.9"] + python-version: ["3.8", "3.9", "3.10", "3.11"] runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - # - run: pip install --upgrade pip setuptools wheel - - run: pip install pytest -r requirements.txt # cov pytest-cov - - run: pytest # --cov=webssh + - run: pip install pytest pytest-cov -r requirements.txt + - run: pytest --cov=webssh + - run: mkdir -p coverage + - uses: tj-actions/coverage-badge-py@v2 + with: + output: coverage/coverage.svg + - uses: JamesIves/github-pages-deploy-action@v4 + with: + branch: coverage-badge + folder: coverage diff --git a/README.md b/README.md index 3dc39d5..0f0adcb 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ ## WebSSH [![python](https://github.com/huashengdun/webssh/actions/workflows/python.yml/badge.svg)](https://github.com/huashengdun/webssh/actions/workflows/python.yml) -[![codecov](https://codecov.io/gh/huashengdun/webssh/branch/master/graph/badge.svg)](https://codecov.io/gh/huashengdun/webssh) +[![codecov](https://raw.githubusercontent.com/huashengdun/webssh/coverage-badge/coverage.svg)](https://raw.githubusercontent.com/huashengdun/webssh/coverage-badge/coverage.svg) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/webssh.svg) ![PyPI](https://img.shields.io/pypi/v/webssh.svg)