mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
name: Coverage Report Upload
|
|
|
|
on:
|
|
workflow_run:
|
|
workflows: [test-linux, test-windows-mac]
|
|
types: [completed]
|
|
|
|
jobs:
|
|
coverage-upload:
|
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-python@v1
|
|
with:
|
|
python-version: '3.8'
|
|
|
|
- name: get coverage files
|
|
uses: actions/download-artifact@v2
|
|
with:
|
|
name: coverage
|
|
path: coverage
|
|
|
|
- run: pip install coverage smokeshow
|
|
|
|
- run: ls -la
|
|
- run: coverage combine coverage
|
|
- run: coverage report
|
|
- run: coverage html --show-contexts
|
|
|
|
- run: smokeshow upload htmlcov
|
|
env:
|
|
SMOKESHOW_GITHUB_STATUS_DESCRIPTION: Coverage {coverage-percentage}
|
|
SMOKESHOW_GITHUB_COVERAGE_THRESHOLD: 100
|
|
SMOKESHOW_GITHUB_CONTEXT: coverage
|
|
SMOKESHOW_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
SMOKESHOW_GITHUB_PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
|