Skip to content

Commit

Permalink
fix: coveralls testing suite
Browse files Browse the repository at this point in the history
  • Loading branch information
mak626 committed Jan 16, 2024
1 parent cc03581 commit 7eb319b
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Unit Tests
on: [push, pull_request]

jobs:
build:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
Expand All @@ -22,9 +22,24 @@ jobs:
pip install -e ".[test]"
- name: Run Unit Tests
run: py.test tests --cov=graphene_federation -vv
- name: Upload Coverage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload coverage
run: |
pip install coveralls
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.python-version }}
COVERALLS_PARALLEL: true

coveralls:
name: Indicate completion to coveralls.io
needs: test
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Finished
run: |
pip3 install --upgrade coveralls
coveralls --service=github --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7eb319b

Please sign in to comment.