@@ -88,27 +88,31 @@ jobs:
88
88
run : hatch run dev:gitlint --debug
89
89
continue-on-error : ${{ github.event_name == 'pull_request' }} # Don't enforce gitlint in PRs
90
90
91
- # Coveralls integration doesn't properly work at this point, also see below
92
- # - name: Coveralls
93
- # env:
94
- # COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
95
- # run: coveralls
96
-
97
- # Patch the commit-msg hook to make it work in GH CI
98
- # Specifically, within the commit-msg hook, wrap the invocation of gitlint with `script`
99
-
100
- # Coveralls GH Action currently doesn't support current non-LCOV reporting format
101
- # For now, still using Travis for unit test coverage reporting
102
- # https://github.com/coverallsapp/github-action/issues/30
103
- # - name: Coveralls
104
- # uses: coverallsapp/github-action@master
105
- # with:
106
- # github-token: ${{ secrets.GITHUB_TOKEN }}
107
-
91
+ - name : Code Coverage (coveralls)
92
+ uses : coverallsapp/github-action@master
93
+ with :
94
+ path-to-lcov : " .coverage.lcov"
95
+ github-token : ${{ secrets.GITHUB_TOKEN }}
96
+ git-commit : ${{ github.event.pull_request.head.sha }}
97
+ flag-name : gitlint-${{ matrix.os }}-${{ matrix.python-version }}
98
+ parallel : true
99
+
100
+ upload_coveralls :
101
+ needs : checks
102
+ runs-on : ubuntu-latest
103
+ steps :
104
+ - name : Upload coverage to coveralls
105
+ uses : coverallsapp/github-action@master
106
+ with :
107
+ path-to-lcov : " .coverage.lcov"
108
+ github-token : ${{ secrets.GITHUB_TOKEN }}
109
+ parallel-finished : true
110
+
108
111
check : # This job does nothing and is only used for the branch protection
109
112
if : always() # Ref: https://github.com/marketplace/actions/alls-green#why
110
113
111
114
needs :
115
+ - upload_coveralls
112
116
- checks
113
117
114
118
runs-on : ubuntu-latest
0 commit comments