Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wling-art authored Jan 9, 2024
1 parent 5001ef5 commit 7245ae2
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
on:
push:
branches:
- main
name: Report Test Coverage

on: [pull_request, push]

jobs:
report:
name: deploy to staging
runs-on: ubuntu-18.04
steps:
- name: Report test coverage to DeepSource
uses: deepsourcelabs/test-coverage-action@master
with:
key: python
coverage-file: coverage.xml
dsn: ${{ secrets.DEEPSOURCE_DSN }}
report_coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Report test coverage to DeepSource
uses: deepsourcelabs/test-coverage-action@master
with:
key: python
coverage-file: coverage.xml
dsn: ${{ secrets.DEEPSOURCE_DSN }}
fail-ci-on-error: true # Optional: Set to true if you want the CI build to fail on error

0 comments on commit 7245ae2

Please sign in to comment.