Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Strand Lab Cellxgene Gateway
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Strand Lab
Strand Lab Cellxgene Gateway
Commits
10105c43
Commit
10105c43
authored
4 years ago
by
Alok Saldanha
Browse files
Options
Downloads
Patches
Plain Diff
added support for code coverage
parent
638923fb
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.coveragerc
+13
-0
13 additions, 0 deletions
.coveragerc
.github/workflows/pr-checks.yaml
+13
-2
13 additions, 2 deletions
.github/workflows/pr-checks.yaml
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
README.md
+6
-0
6 additions, 0 deletions
README.md
environment.yml
+1
-0
1 addition, 0 deletions
environment.yml
with
34 additions
and
2 deletions
.coveragerc
0 → 100644
+
13
−
0
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
This diff is collapsed.
Click to expand it.
.github/workflows/pr-checks.yaml
+
13
−
2
View file @
10105c43
...
@@ -45,5 +45,16 @@ jobs:
...
@@ -45,5 +45,16 @@ jobs:
run
:
|
run
:
|
eval "$(conda shell.bash hook)"
eval "$(conda shell.bash hook)"
conda activate cellxgene-gateway
conda activate cellxgene-gateway
python -m unittest discover tests
coverage run -m unittest discover tests
bash <(curl -s https://codecov.io/bash)
-
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
This diff is collapsed.
Click to expand it.
.gitignore
+
1
−
0
View file @
10105c43
...
@@ -55,6 +55,7 @@ htmlcov/
...
@@ -55,6 +55,7 @@ htmlcov/
.nox/
.nox/
.coverage
.coverage
.coverage.*
.coverage.*
htmlcov
.cache
.cache
nosetests.xml
nosetests.xml
coverage.xml
coverage.xml
...
...
This diff is collapsed.
Click to expand it.
README.md
+
6
−
0
View file @
10105c43
...
@@ -140,6 +140,12 @@ pre-commit install
...
@@ -140,6 +140,12 @@ pre-commit install
python
-m
unittest discover tests
python
-m
unittest discover tests
```
```
## Code Coverage
```
bash
coverage run
-m
unittest discover tests
coverage html
```
## Running Linters
## Running Linters
pip install isort flake8 black
pip install isort flake8 black
...
...
This diff is collapsed.
Click to expand it.
environment.yml
+
1
−
0
View file @
10105c43
...
@@ -7,6 +7,7 @@ dependencies:
...
@@ -7,6 +7,7 @@ dependencies:
-
flask
-
flask
-
psutil
-
psutil
-
black
-
black
-
coverage
-
pip
-
pip
-
pip
:
-
pip
:
-
flask-api
-
flask-api
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment