Skip to content

Commit b8bfe52

Browse files
committed
add coverage
1 parent 9ba6c19 commit b8bfe52

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

.circleci/config.yml

+24-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,29 @@ jobs:
3434
<<: *test-template
3535
docker:
3636
- image: circleci/python:3.9
37-
37+
coverage:
38+
docker:
39+
- image: circleci/python:3.7
40+
working_directory: ~/finvizfinance
41+
steps:
42+
- checkout
43+
- run:
44+
name: Install dependencies
45+
command: |
46+
pip install --upgrade pip
47+
python3 -m venv venv
48+
. venv/bin/activate
49+
sudo pip install -r requirements-coverage.txt
50+
- run:
51+
name: Run coverage
52+
command: |
53+
coverage run -m unittest discover
54+
coverage report -m
55+
- run:
56+
name: Publish coverage
57+
command: |
58+
export COVERALLS_REPO_TOKEN=ClAernwluOegoexWqdcN70Skf2RHgrGId
59+
coveralls
3860
workflows:
3961
version: 2
4062
build:
@@ -43,7 +65,7 @@ workflows:
4365
- test_py37
4466
- test_py38
4567
- test_py39
46-
# - coverage
68+
- coverage
4769
# - doc
4870

4971

.coveralls.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
repo_token: ClAernwluOegoexWqdcN70Skf2RHgrGId

0 commit comments

Comments
 (0)