Skip to content

Commit 9e65a05

Browse files
committed
fix(github): rename to github-actions
1 parent beaf74c commit 9e65a05

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

coveralls/api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def load_config_from_github():
9696
if os.environ.get('GITHUB_REF', '').startswith('refs/pull/'):
9797
pr = os.environ.get('GITHUB_REF', '//').split('/')[2]
9898
service_number += '-PR-{0}'.format(pr)
99-
return 'github', service_number, pr
99+
return 'github-actions', service_number, pr
100100

101101
@staticmethod
102102
def load_config_from_jenkins():

tests/api/configuration_test.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def test_circleci_no_config(self):
118118
clear=True)
119119
def test_github_no_config(self):
120120
cover = Coveralls(repo_token='xxx')
121-
assert cover.config['service_name'] == 'github'
121+
assert cover.config['service_name'] == 'github-actions'
122122
assert cover.config['service_pull_request'] == '1234'
123123
assert 'service_job_id' not in cover.config
124124

@@ -131,7 +131,7 @@ def test_github_no_config(self):
131131
clear=True)
132132
def test_github_no_config_no_pr(self):
133133
cover = Coveralls(repo_token='xxx')
134-
assert cover.config['service_name'] == 'github'
134+
assert cover.config['service_name'] == 'github-actions'
135135
assert 'service_pull_request' not in cover.config
136136
assert 'service_job_id' not in cover.config
137137

0 commit comments

Comments
 (0)