Skip to content

Commit 458e22d

Browse files
committed
chore(release): bump version
1 parent f597109 commit 458e22d

File tree

4 files changed

+23
-8
lines changed

4 files changed

+23
-8
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
<a name="2.1.0"></a>
2+
## 2.1.0 (2020-07-07)
3+
4+
#### Features
5+
6+
* **cli**: add new `--finish` flag for finalizing parallel builds (#277) ([f597109b](f597109b))
7+
8+
#### Bug Fixes
9+
10+
* **github:** fix Github Actions support (#227) ([f597109b](f597109b))
11+
112
<a name="2.0.0"></a>
213
## 2.0.0 (2020-04-07)
314

coveralls/api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,19 +207,19 @@ def wear(self, dry_run=False):
207207
except Exception as e:
208208
raise CoverallsException('Could not submit coverage: {}'.format(e))
209209

210+
# https://docs.coveralls.io/parallel-build-webhook
210211
def parallel_finish(self):
211-
payload = {
212-
'payload': {
213-
'status': 'done'
214-
}
215-
}
212+
payload = {'payload': {'status': 'done'}}
213+
214+
# required args
216215
if self.config.get('repo_token'):
217216
payload['repo_token'] = self.config['repo_token']
218217
if self.config.get('service_number'):
219218
payload['payload']['build_num'] = self.config['service_number']
220219

221-
# Service-Specific Parameters
220+
# service-specific parameters
222221
if os.environ.get('GITHUB_REPOSITORY'):
222+
# Github Actions only
223223
payload['repo_name'] = os.environ.get('GITHUB_REPOSITORY')
224224

225225
endpoint = '{}/webhook'.format(self._coveralls_host.rstrip('/'))

coveralls/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '2.0.0'
1+
__version__ = '2.1.0'

docs/usage/configuration.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ If you are running multiple jobs in parallel and want coveralls.io to merge thos
2929

3030
COVERALLS_PARALLEL=true coveralls
3131

32+
Later on, you can use ``coveralls --finish`` to let the Coveralls service know you have completed all your parallel runs::
33+
34+
coveralls --finish
35+
3236
If you are using a non-public coveralls.io instance (for example: self-hosted Coveralls Enterprise), you can set ``COVERALLS_HOST`` to the base URL of that insance::
3337

3438
COVERALLS_HOST="https://coveralls.aperture.com" coveralls
@@ -60,7 +64,7 @@ Coveralls natively supports jobs running on Github Actions. You can directly pas
6064
run: |
6165
coveralls
6266

63-
For parallel builds you have to add a final step to let coveralls know the parallel build is finished. You also have to set COVERALLS_FLAG_NAME to something unique to the specific step, so re-runs of the same job don't keep piling up builds::
67+
For parallel builds, you have to add a final step to let coveralls know the parallel build is finished. You also have to set COVERALLS_FLAG_NAME to something unique to the specific step, so re-runs of the same job don't keep piling up builds::
6468

6569
jobs:
6670
test:

0 commit comments

Comments
 (0)