Skip to content

test: set self-deploy url #8

test: set self-deploy url

test: set self-deploy url #8

name: Python package
on: [push]
jobs:
build:
runs-on: ubuntu-latest
env:
CODECOV_URL: http://codedev.tdengine.net:5080
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-cov
- name: Run tests with coverage
run: |
pytest --cov=test_calculator --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
codecov_url: http://codedev.tdengine.net:5080
token: ${{ secrets.CODECOV_TOKEN }}
slug: jiajingbin/codecov-example
file: ./coverage.xml # 指定覆盖率文件的路径
fail_ci_if_error: true # 可选的,如果上传失败则使CI失败