diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-06-01 12:30:40 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-06-01 12:59:19 +0200 |
| commit | cd2e3288d28d23556a81bad76dab0aae2e055ac2 (patch) | |
| tree | 8ab3364a96b6309f0462b9e4584b88af3855d337 /.github | |
| parent | 238a3816cee7f5dc2458ef878b140cbcb7a7b2ec (diff) | |
ci: Fix code coverage reporting for web API
This change updates the build workflow to properly report the code
coverage reports of the web API to Codecov.
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/build.yml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9c42e638..b0e8cc38 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -78,19 +78,19 @@ jobs: - name: Lint with pylint run: ./check.sh - name: Test with pytest - run: pytest --cov=opendc/ --junitxml=.junit-report.xml + run: pytest --cov --cov-report=xml --junitxml=junit-report.xml - name: Publish report if: always() uses: mikepenz/action-junit-report@v2 with: check_name: test (Python ${{ matrix.python }}) - report_paths: '**/.junit-report.xml' + report_paths: '**/junit-report.xml' github_token: ${{ secrets.GITHUB_TOKEN }} - name: Upload code coverage uses: codecov/codecov-action@v1 with: token: ${{ secrets.CODECOV_TOKEN }} - files: opendc-web/opendc-web-api/.coverage + files: opendc-web/opendc-web-api/coverage.xml flags: api build-ui: name: Build UI (Node ${{ matrix.node }}) |
