Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Strand Lab
Strand Lab Cellxgene Gateway
Commits
10105c43
Commit
10105c43
authored
Apr 04, 2021
by
Alok Saldanha
Browse files
added support for code coverage
parent
638923fb
Changes
5
Hide whitespace changes
Inline
Side-by-side
.coveragerc
0 → 100644
View file @
10105c43
[run]
branch = True
source = cellxgene_gateway
[report]
exclude_lines =
if self.debug:
pragma: no cover
raise NotImplementedError
if __name__ == .__main__.:
ignore_errors = True
omit =
tests/*
\ No newline at end of file
.github/workflows/pr-checks.yaml
View file @
10105c43
...
...
@@ -45,5 +45,16 @@ jobs:
run
:
|
eval "$(conda shell.bash hook)"
conda activate cellxgene-gateway
python -m unittest discover tests
bash <(curl -s https://codecov.io/bash)
coverage run -m unittest discover tests
-
name
:
Check coverage
run
:
|
eval "$(conda shell.bash hook)"
conda activate cellxgene-gateway
coverage report --fail-under 41
coverage xml -i
-
name
:
"
Upload
coverage
to
Codecov"
uses
:
codecov/codecov-action@v1
with
:
fail_ci_if_error
:
true
.gitignore
View file @
10105c43
...
...
@@ -55,6 +55,7 @@ htmlcov/
.nox/
.coverage
.coverage.*
htmlcov
.cache
nosetests.xml
coverage.xml
...
...
README.md
View file @
10105c43
...
...
@@ -140,6 +140,12 @@ pre-commit install
python
-m
unittest discover tests
```
## Code Coverage
```
bash
coverage run
-m
unittest discover tests
coverage html
```
## Running Linters
pip install isort flake8 black
...
...
environment.yml
View file @
10105c43
...
...
@@ -7,6 +7,7 @@ dependencies:
-
flask
-
psutil
-
black
-
coverage
-
pip
-
pip
:
-
flask-api
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment