Skip to content

Commit

Permalink
Coverage test on push
Browse files Browse the repository at this point in the history
  • Loading branch information
utement committed Oct 17, 2023
1 parent f1f9df5 commit 81b471f
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/incremental-coverage-test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Coverage check
on: [pull_request]
on: [push, pull_request]
jobs:
lint:
name: Code coverage
Expand All @@ -25,11 +25,26 @@ jobs:
run: |
coverage report -m
coverage json
- uses: velis74/incremental-coverage-check@main
- name: Coverage check on pull_request
uses: velis74/incremental-coverage-check@main
with:
py_coverage_json: coverage.json
logging_level: INFO
base_ref: ${{ github.base_ref }}
head_ref: HEAD
rep_ref: main
logging_level: INFO
gh_token: ${{ secrets.GITHUB_TOKEN }}
pr_number: ${{github.event.pull_request.number}}
if: github.event_name == 'pull_request'

- name: Coverage check on push
uses: velis74/incremental-coverage-check@main
with:
py_coverage_json: coverage.json
base_ref: ${{ github.event.before }}
head_ref: HEAD
rep_ref: main
logging_level: INFO
gh_token: ${{ secrets.GITHUB_TOKEN }}
if: github.event_name == 'push'

0 comments on commit 81b471f

Please sign in to comment.