Skip to content

Commit f08c72f

Browse files
Add code coverage workflow
1 parent dd95492 commit f08c72f

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Create code coverage report in Coveralls.io.
2+
3+
name: Coveralls.io code coverage report
4+
5+
on:
6+
push:
7+
branches: [ "main" ]
8+
pull_request:
9+
branches: [ "main" ]
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
name: Running unit tests
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Set up Python 3.11
19+
uses: actions/setup-python@v3
20+
with:
21+
python-version: "3.11"
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install -r requirements.txt
26+
- name: Install coveralls
27+
run: |
28+
python -m pip install coveralls
29+
- name: Checking coverage
30+
run: |
31+
coverage run --source=simplejustwatchpythonapi -m pytest test/
32+
COVERALLS_REPO_TOKEN=${{ secrets.COVERALLS_TOKEN }} coveralls

0 commit comments

Comments
 (0)