Skip to content

Commit 25749b6

Browse files
authored
Merge pull request #458 from tlsfuzzer/backported-coveralls
use new coveralls
2 parents 66878a9 + b47d261 commit 25749b6

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -311,10 +311,9 @@ jobs:
311311
- name: Publish coverage to Coveralls
312312
env:
313313
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
314-
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
315314
COVERALLS_FLAG_NAME: ${{ matrix.name }}
316315
COVERALLS_PARALLEL: true
317-
COVERALLS_SERVICE_NAME: git hub actions
316+
COVERALLS_SERVICE_NAME: github
318317
run: coveralls
319318
- name: Publish coverage to Codeclimate
320319
if: ${{ contains(matrix.opt-deps, 'codeclimate') }}
@@ -328,20 +327,14 @@ jobs:
328327
name: Indicate completion to coveralls.io
329328
needs: test
330329
runs-on: ubuntu-latest
330+
container: python:3-slim
331331
steps:
332-
- name: Finished
332+
- name: Install coveralls
333+
run: |
334+
pip3 install --upgrade coveralls
335+
- name: Send "finished" signal to coveralls
333336
env:
334337
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
335-
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
338+
COVERALLS_SERVICE_NAME: github
336339
run: |
337-
echo "GITHUB_SHA:" $GITHUB_SHA
338-
echo "GITHUB_REF:" $GITHUB_REF
339-
if [[ "${{ github.event.pull_request }}" ]]; then
340-
PR_NUM=${GITHUB_REF#refs/pull/}
341-
PR_NUM=${PR_NUM%/merge}
342-
BUILD_NUM=${GITHUB_SHA}-PR-${PR_NUM}
343-
else
344-
BUILD_NUM=${GITHUB_SHA}
345-
fi
346-
echo "BUILD_NUM:" $BUILD_NUM
347-
curl -k https://coveralls.io/webhook?repo_token=$COVERALLS_REPO_TOKEN -d "payload[build_num]=${BUILD_NUM}&payload[status]=done"
340+
coveralls --finish

build-requirements-2.6.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cffi<1.14
55
unittest2
66
coverage
77
hypothesis<3
8-
coveralls<1.3.0
8+
git+https://github.com/tomato42/coveralls-python.git@add-py26#egg=coveralls
99
pylint
1010
diff_cover
1111
pycparser<2.19

build-requirements-2.7.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
unittest2
22
coverage
33
hypothesis
4-
coveralls
4+
git+https://github.com/tomato42/coveralls-python.git@add-py26#egg=coveralls
55
pylint
66
mock
77
diff_cover<2.5.0

build-requirements-3.3.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ six>=1.10.0
22
enum34
33
coverage<5.0
44
hypothesis<3.44
5-
coveralls
5+
git+https://github.com/tomato42/coveralls-python.git@add-py26#egg=coveralls
66
pylint
77
diff_cover<2.5.0
88
typed-ast<1.3.0

build-requirements-3.4.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
coverage
2+
hypothesis
3+
git+https://github.com/tomato42/coveralls-python.git@add-py26#egg=coveralls
4+
pylint
5+
diff_cover
6+
pytest>=4.6.5
7+
pluggy>=0.7

build-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
coverage
22
hypothesis
3-
coveralls==1.11.1
3+
coveralls
44
pylint
55
diff_cover
66
pytest>=4.6.5

0 commit comments

Comments
 (0)