Skip to content

Commit e33494e

Browse files
committed
downscope permission for python test workflow
1 parent fd0fdd8 commit e33494e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/python-test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
name: Test
55

6+
permissions: read-all
7+
68
on:
79
push:
810
branches: [ master ]
@@ -27,7 +29,7 @@ jobs:
2729
- name: Install dependencies
2830
run: |
2931
python -m pip install --upgrade pip
30-
python -m pip install flake8 pytest mypy
32+
python -m pip install flake8 pytest pytest-cov mypy
3133
- name: Lint with flake8
3234
run: |
3335
# stop the build if there are Python syntax errors or undefined names
@@ -38,3 +40,5 @@ jobs:
3840
run: mypy pythonosc examples
3941
- name: Test with pytest
4042
run: pytest
43+
- name: Coverage with pytest-cov
44+
run: pytest -cov=pythonosc

0 commit comments

Comments
 (0)