Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coverage testing #15

Merged
merged 3 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[flake8]
extend-ignore = E124,E128,E301,E302,E305,E501,E261
extend-ignore = E124,E128,E301,E302,E305,E402,E501,E261
# E124: closing bracket does not match visual indentation
# E128: continuation line under-indented for visual indent
# E301: expected 1 blank line, found 0
# E302: expected 2 blank lines, found 1
# E305: expected 2 blank lines after class or function definition, found 1
# E402: module level import not at top of file
# E501: line too long (82 > 79 characters)
# E261: at least two spaces before inline comment
2 changes: 1 addition & 1 deletion .github/workflows/linter_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Install
run: cd python && pip install -e .
- name: Install packages needed for tests
run: pip install pytest pytest-cov pyright boto3 kachery_cloud flake8
run: pip install pytest pytest-asyncio pytest-cov pyright boto3 kachery_cloud flake8
- name: Install additional packages used by api_helpers
run: pip install -r requirements.txt
- name: Run linter checks
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ jobs:
- name: Install
run: cd python && pip install -e .
- name: Install packages needed for tests
run: pip install pytest pytest-cov boto3 kachery_cloud
run: pip install pytest pytest-asyncio pytest-cov boto3 kachery_cloud
- name: Run non-api tests
run: cd python && pytest -m "not api" tests/ # make sure we are not depending on any of the additional packages in requirements.txt
- name: Install packages needed for api tests
run: pip install -r requirements.txt
- name: Run tests and collect coverage
run: cd python && pytest --cov protocaas --cov-report=xml --cov-report=term tests/
- uses: codecov/codecov-action@v3
Expand Down
2 changes: 1 addition & 1 deletion doc/for_developers.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Running the tests (vscode action)

```bash
pip install pytest pytest-cov pyright flake8
pip install pytest pytest-asyncio pytest-cov pyright flake8
```

In vscode:
Expand Down
Loading
Loading