From 9bcd940960d0a36e59ede5c9244ad0095d5f8f61 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Fri, 13 Dec 2019 19:16:19 +0800 Subject: [PATCH] Update unittest.yml replace coveralls with codecov --- .github/workflows/unittest.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 0d8a69d1..d20fc786 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -37,13 +37,16 @@ jobs: python -m httprunner.cli hrun -h poetry run coverage run --source=httprunner -m unittest discover poetry run coverage report -m - - name: Coveralls GitHub Action - uses: coverallsapp/github-action@v1.0.1 + - name: Codecov + uses: codecov/codecov-action@v1.0.5 with: - github-token: ${{ secrets.GITHUB_TOKEN }} - # Path to lcov file - path-to-lcov: .coverage # default is ./coverage/lcov.info - # Set to true if you are running parallel jobs, then use "parallel_finished: true" for the last action. - parallel: true # optional - # Set to true for the last action when using "parallel: true". - parallel-finished: true # optional + # User defined upload name. Visible in Codecov UI + name: httprunner # optional + # Repository upload token - get it from codecov.io + token: ${{ secrets.CODECOV_TOKEN }} + # Path to coverage file to upload + file: .coverage # 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