Skip to content
This repository was archived by the owner on Mar 17, 2023. It is now read-only.

Commit f01d883

Browse files
pytest cov
1 parent a4435a9 commit f01d883

File tree

6 files changed

+35
-16
lines changed

6 files changed

+35
-16
lines changed

.github/workflows/ci.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
pip install -r requirements_testing.txt
3838
make coverage
3939
- name: Send coverage to codecov.io
40-
uses: codecov/codecov-action@v1
41-
with:
42-
fail_ci_if_error: true
40+
shell: bash -l {0}
41+
run: |
42+
pip install codecov
43+
bash <(curl -s https://codecov.io/bash)

Makefile

+22-11
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,34 @@
1+
PYTHON ?= python
2+
13
help:
24
@echo "lint - check code style with flake8"
5+
@echo "code_format - check code style with black"
36
@echo "test - run tests only"
47
@echo "coverage - run tests and check code coverage"
58
@echo "conda_install (recommended) - Install requirements "
69

10+
clean:
11+
$(PYTHON) setup.py clean --all
12+
13+
install:
14+
pip install -r requirements.txt
15+
pip install .
16+
17+
dist: FORCE
18+
$(PYTHON) setup.py sdist
19+
720
test:
8-
py.test
21+
pip install -e '.[test]'
22+
$(PYTHON) -m pytest
923

1024
coverage:
11-
coverage run --source orpheum --omit="*/test*" --module py.test
12-
coverage report --show-missing
25+
$(PYTHON) setup.py clean --all
26+
$(PYTHON) -m pytest --cov=. --cov-report term-missing
27+
28+
FORCE:
29+
30+
code_format:
31+
black .
1332

1433
lint:
1534
# ignore:
@@ -22,11 +41,3 @@ conda_install:
2241
pip install -r requirements.txt
2342
pip install .
2443

25-
install:
26-
pip install -r requirements.txt
27-
pip install .
28-
29-
dist: FORCE
30-
python setup.py sdist
31-
32-
FORCE:

environment_minimal.yml

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ dependencies:
1212
- notebook
1313
- numpy
1414
- pandas
15+
- pytest
16+
- pytest-cov
1517
- pip
1618
- pyarrow
1719
- scikit-learn

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ pyarrow
1515
s3fs
1616
fastparquet
1717
pytest
18+
pytest-cov

requirements_minimal.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ khmer
77
httmock
88
seaborn
99
scikit-learn
10-
networkx
10+
networkx
11+
pytest-cov
12+
pytest

requirements_testing.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
pytest
22
coverage
3-
flake8
3+
flake8
4+
pytest-cov
5+
black

0 commit comments

Comments
 (0)