Skip to content

Commit aabdfc5

Browse files
committed
Updated workflows
1 parent 21ab5cc commit aabdfc5

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/workflows/python.yml

+11-4
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,20 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
python-version: ["3.8", "3.9", "3.10", "3.11"] # , "pypy-3.9"]
19+
python-version: ["3.8", "3.9", "3.10", "3.11"]
2020
runs-on: ubuntu-latest
2121
steps:
2222
- uses: actions/checkout@v3
2323
- uses: actions/setup-python@v4
2424
with:
2525
python-version: ${{ matrix.python-version }}
26-
# - run: pip install --upgrade pip setuptools wheel
27-
- run: pip install pytest -r requirements.txt # cov pytest-cov
28-
- run: pytest # --cov=webssh
26+
- run: pip install pytest pytest-cov -r requirements.txt
27+
- run: pytest --cov=webssh
28+
- run: mkdir -p coverage
29+
- uses: tj-actions/coverage-badge-py@v2
30+
with:
31+
output: coverage/coverage.svg
32+
- uses: JamesIves/github-pages-deploy-action@v4
33+
with:
34+
branch: coverage-badge
35+
folder: coverage

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## WebSSH
22

33
[![python](https://github.com/huashengdun/webssh/actions/workflows/python.yml/badge.svg)](https://github.com/huashengdun/webssh/actions/workflows/python.yml)
4-
[![codecov](https://codecov.io/gh/huashengdun/webssh/branch/master/graph/badge.svg)](https://codecov.io/gh/huashengdun/webssh)
4+
[![codecov](https://raw.githubusercontent.com/huashengdun/webssh/coverage-badge/coverage.svg)](https://raw.githubusercontent.com/huashengdun/webssh/coverage-badge/coverage.svg)
55
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/webssh.svg)
66
![PyPI](https://img.shields.io/pypi/v/webssh.svg)
77

0 commit comments

Comments
 (0)