| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -55,6 +55,12 @@ jobs: | |||
| 55 | 55 | env: | |
| 56 | 56 | TOXENV: ${{ matrix.toxenv }} | |
| 57 | 57 | run: tox | |
| 58 | + - name: Upload codecov coverage | ||
| 59 | + uses: codecov/codecov-action@v1 | ||
| 60 | + with: | ||
| 61 | + files: ./coverage.xml | ||
| 62 | + flags: ${{ matrix.toxenv }} | ||
| 63 | + fail_ci_if_error: true | ||
| 58 | 64 | ||
| 59 | 65 | coverage: | |
| 60 | 66 | runs-on: ubuntu-20.04 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,15 @@ | |||
| 1 | + codecov: | ||
| 2 | + require_ci_to_pass: yes | ||
| 3 | + | ||
| 4 | + coverage: | ||
| 5 | + precision: 2 | ||
| 6 | + round: down | ||
| 7 | + range: "70...100" | ||
| 8 | + | ||
| 9 | + comment: | ||
| 10 | + layout: "diff,flags,files" | ||
| 11 | + behavior: default | ||
| 12 | + require_changes: yes | ||
| 13 | + | ||
| 14 | + github_checks: | ||
| 15 | + annotations: true | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -74,8 +74,13 @@ omit = *tests* | |||
| 74 | 74 | ||
| 75 | 75 | [testenv:cli_func_v4] | |
| 76 | 76 | deps = -r{toxinidir}/docker-requirements.txt | |
| 77 | - commands = pytest --script-launch-mode=subprocess tools/functional/cli {posargs} | ||
| 77 | + commands = | ||
| 78 | + pytest --cov gitlab --cov-report term --cov-report html --cov-report xml \ | ||
| 79 | + --script-launch-mode=subprocess \ | ||
| 80 | + tools/functional/cli {posargs} | ||
| 78 | 81 | ||
| 79 | 82 | [testenv:py_func_v4] | |
| 80 | 83 | deps = -r{toxinidir}/docker-requirements.txt | |
| 81 | - commands = pytest tools/functional/api {posargs} | ||
| 84 | + commands = | ||
| 85 | + pytest --cov gitlab --cov-report term --cov-report html --cov-report xml \ | ||
| 86 | + tools/functional/api {posargs} | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments