diff --git a/.github/workflows/incremental-coverage-test.yml b/.github/workflows/incremental-coverage-test.yml index 2266ba5b..8e155ef7 100644 --- a/.github/workflows/incremental-coverage-test.yml +++ b/.github/workflows/incremental-coverage-test.yml @@ -1,5 +1,5 @@ name: Coverage check -on: [pull_request] +on: [push, pull_request] jobs: lint: name: Code coverage @@ -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'