diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-03-20 16:27:50 +0100 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-03-20 16:41:19 +0100 |
| commit | fce499eaafa0afecee5c14346ff7d75e2fe999b6 (patch) | |
| tree | e8f9b8acc214f871187b910febe70a7453abe232 /.github/workflows/build-api.yml | |
| parent | 05331ae9927d487ed89733dcb32cb883a0b6bedf (diff) | |
ci: Add reports and coverage tracking for API
Diffstat (limited to '.github/workflows/build-api.yml')
| -rw-r--r-- | .github/workflows/build-api.yml | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/.github/workflows/build-api.yml b/.github/workflows/build-api.yml index 989e416f..4ae261db 100644 --- a/.github/workflows/build-api.yml +++ b/.github/workflows/build-api.yml @@ -26,8 +26,20 @@ jobs: python -m pip install --upgrade pip pip install -r requirements.txt - name: Lint with pylint - run: | - ./check.sh + run: ./check.sh - name: Test with pytest - run: | - pytest opendc + run: pytest --cov=opendc/ --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' + github_token: ${{ secrets.GITHUB_TOKEN }} + - name: Upload code coverage + uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: ./api/.coverage + flags: api + |
