From b6fe1a6f115916f8d6b6b2abdeab7dfa369b5fe3 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Fri, 13 Dec 2019 18:56:00 +0800 Subject: [PATCH] Update unittest.yml add coveralls --- .github/workflows/unittest.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 33b138c9..3b48a821 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -28,11 +28,24 @@ jobs: poetry build ls dist/*.whl | xargs pip install # test installation hrun -V - - name: Smoketest for hrun command + - name: Run smoketest for hrun command run: | cd tests/httpbin && hrun basic.yml --log-level debug --failfast && cd - - - name: Smoketest for hrun command + - name: Run unittest for httprunner run: | python -m httprunner.cli hrun -V python -m httprunner.cli hrun -h poetry run coverage run --source=httprunner -m unittest discover + + - name: Coveralls GitHub Action + - name: Coveralls GitHub Action + uses: coverallsapp/github-action@v1.0.1 + with: + # + github-token: ${{ secrets.GITHUB_TOKEN }} + # Path to lcov file + # path-to-lcov: # 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