smokeshow.yml 955 B

1234567891011121314151617181920212223242526272829303132333435
  1. name: Smokeshow
  2. on:
  3. workflow_run:
  4. workflows: [Test]
  5. types: [completed]
  6. permissions:
  7. statuses: write
  8. jobs:
  9. smokeshow:
  10. if: ${{ github.event.workflow_run.conclusion == 'success' }}
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/setup-python@v5
  14. with:
  15. python-version: '3.9'
  16. - run: pip install smokeshow
  17. - uses: dawidd6/action-download-artifact@v3.1.4
  18. with:
  19. workflow: test.yml
  20. commit: ${{ github.event.workflow_run.head_sha }}
  21. - run: smokeshow upload coverage-html
  22. env:
  23. SMOKESHOW_GITHUB_STATUS_DESCRIPTION: Coverage {coverage-percentage}
  24. SMOKESHOW_GITHUB_COVERAGE_THRESHOLD: 90
  25. SMOKESHOW_GITHUB_CONTEXT: coverage
  26. SMOKESHOW_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  27. SMOKESHOW_GITHUB_PR_HEAD_SHA: ${{ github.event.workflow_run.head_sha }}
  28. SMOKESHOW_AUTH_KEY: ${{ secrets.SMOKESHOW_AUTH_KEY }}