Skip to content

Commit

Permalink
Upload test coverage result
Browse files Browse the repository at this point in the history
  • Loading branch information
waketzheng committed Dec 12, 2023
1 parent bdae5ee commit 651a478
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 352 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Install requirements
run: |
poetry install
poetry run pip install isort black ruff mypy bandit
poetry run pip install isort black ruff mypy bandit coveralls
- name: Check code style and Type Hint
run: |
poetry run isort --check-only --src=fastapi_cdn_host .
Expand All @@ -48,3 +48,21 @@ jobs:
run: ./scripts/test.sh
- name: build
run: poetry build
- name: Upload Coverage
run: poetry run coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.python-version }}
COVERALLS_PARALLEL: true

coveralls:
name: Finish Coveralls
needs: test
runs-on: ubuntu-latest
steps:
- name: Finished
run: |
pip3 install --upgrade coveralls
coveralls --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit 651a478

Please sign in to comment.