mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-09 06:23:52 +08:00
Update unittest.yml
replace coveralls with codecov
This commit is contained in:
21
.github/workflows/unittest.yml
vendored
21
.github/workflows/unittest.yml
vendored
@@ -37,13 +37,16 @@ jobs:
|
|||||||
python -m httprunner.cli hrun -h
|
python -m httprunner.cli hrun -h
|
||||||
poetry run coverage run --source=httprunner -m unittest discover
|
poetry run coverage run --source=httprunner -m unittest discover
|
||||||
poetry run coverage report -m
|
poetry run coverage report -m
|
||||||
- name: Coveralls GitHub Action
|
- name: Codecov
|
||||||
uses: coverallsapp/github-action@v1.0.1
|
uses: codecov/codecov-action@v1.0.5
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
# User defined upload name. Visible in Codecov UI
|
||||||
# Path to lcov file
|
name: httprunner # optional
|
||||||
path-to-lcov: .coverage # default is ./coverage/lcov.info
|
# Repository upload token - get it from codecov.io
|
||||||
# Set to true if you are running parallel jobs, then use "parallel_finished: true" for the last action.
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
parallel: true # optional
|
# Path to coverage file to upload
|
||||||
# Set to true for the last action when using "parallel: true".
|
file: .coverage # optional
|
||||||
parallel-finished: true # optional
|
# Flag upload to group coverage metrics (e.g. unittests | integration | ui,chrome)
|
||||||
|
flags: unittests # optional
|
||||||
|
# Specify whether or not CI build should fail if Codecov runs into an error during upload
|
||||||
|
fail_ci_if_error: true # optional
|
||||||
|
|||||||
Reference in New Issue
Block a user