Skip to content

Update README.md

Update README.md #4

Workflow file for this run

# .github/workflows/ci.yml
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: 检出代码
uses: actions/checkout@v3
- name: 设置 Python 版本
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: 安装依赖项
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install coverage codecov
- name: 运行测试并收集覆盖率
run: |
coverage run -m unittest discover -s tests
coverage xml
- name: 上传覆盖率到 Codecov
uses: codecov/codecov-action@v3
with:
files: coverage.xml
token: ba3e3519-bc38-4b40-9e0e-ea4272eae9fe
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true