Skip to content

Commit b3d50df

Browse files
committed
ci: remove api tests from pytest in gh workflow
1 parent 6abc7c6 commit b3d50df

File tree

5 files changed

+14
-1
lines changed

5 files changed

+14
-1
lines changed

.coveragerc

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
omit =
33
setup.py
44
version.py
5+
jarvis_sdk/api.py
56
jarvis_sdk/example.py
67
jarvis_sdk/indykite/*
78
jarvis_sdk/validate/*

.github/PULL_REQUEST_TEMPLATE.md

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ Contributors guide: ./CONTRIBUTING.md
1616
- [ ] `make test` passes
1717
- [ ] tests and/or benchmarks are included
1818
- [ ] documentation is changed or added
19-
- [ ] commit message follows [commit guidelines](./doc/guides/commit-message.md#commit-message-guidelines)
2019

2120
<!-- _NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open._ -->
2221

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,16 @@ def open_and_close_channel():
181181
client.channel.close()
182182
```
183183

184+
## Running tests
185+
186+
To run unit tests, simply execute
187+
188+
pytest
189+
190+
To display code coverage, enter
191+
192+
pytest --cov .
193+
184194
## Functions to call
185195

186196
Most of the calls can be executed in two ways:

codecov.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ coverage:
88
ignore:
99
- "setup.py"
1010
- "version.py"
11+
- "jarvis_sdk/api.py"
1112
- "jarvis_sdk/example.py"
1213
- "jarvis_sdk/indykite"
1314
- "jarvis_sdk/validate"

pytest.ini

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[pytest]
2+
addopts = --ignore=tests/test_api.py

0 commit comments

Comments
 (0)