Skip to content

Commit

Permalink
coverage testing
Browse files Browse the repository at this point in the history
  • Loading branch information
magland committed Oct 24, 2023
1 parent 6f920e8 commit aabb6c1
Show file tree
Hide file tree
Showing 11 changed files with 685 additions and 43 deletions.
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
2 changes: 1 addition & 1 deletion .github/workflows/tests.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 boto3 kachery_cloud
run: pip install pytest pytest-asyncio pytest-cov boto3 kachery_cloud
- 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

0 comments on commit aabb6c1

Please sign in to comment.