Skip to content

Commit 7eb319b

Browse files
committed
fix: coveralls testing suite
1 parent cc03581 commit 7eb319b

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

.github/workflows/tests.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Unit Tests
33
on: [push, pull_request]
44

55
jobs:
6-
build:
6+
test:
77
runs-on: ubuntu-latest
88
strategy:
99
max-parallel: 4
@@ -22,9 +22,24 @@ jobs:
2222
pip install -e ".[test]"
2323
- name: Run Unit Tests
2424
run: py.test tests --cov=graphene_federation -vv
25-
- name: Upload Coverage
26-
env:
27-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
- name: Upload coverage
2826
run: |
2927
pip install coveralls
3028
coveralls --service=github
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
COVERALLS_FLAG_NAME: ${{ matrix.python-version }}
32+
COVERALLS_PARALLEL: true
33+
34+
coveralls:
35+
name: Indicate completion to coveralls.io
36+
needs: test
37+
runs-on: ubuntu-latest
38+
container: python:3-slim
39+
steps:
40+
- name: Finished
41+
run: |
42+
pip3 install --upgrade coveralls
43+
coveralls --service=github --finish
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)