Skip to content

Commit

Permalink
Update CI.yml (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyrkir committed Apr 7, 2024
1 parent c9393fa commit 1bd271c
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Continuous Integration
on: [push]

jobs:
build:
test:
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -28,3 +28,24 @@ jobs:
- name: Run tests
run: |
pytest ./tests/ --log-disable py4phi_logger --cov=./py4phi/ --cov-fail-under=95
- name: Upload coverage data to coveralls.io
run: |
pip3 install coveralls
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.test-name }}
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 1bd271c

Please sign in to comment.