-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
39 lines (30 loc) · 1.06 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
## Run alignment-based functions
run.alignment_summary:
python3 -m biokit-runner alignment_summary ./tests/sample_files/simple.fa
## Install, develop, and testing make commands
install:
# install so biokit command is available in terminal
python3 setup.py install
develop:
# https://setuptools.readthedocs.io/en/latest/setuptools.html#development-mode
python setup.py develop
test: test.unit test.integration
test.unit:
python3 -m pytest -m "not integration"
test.integration:
rm -rf output/
mkdir output/
python3 -m pytest --basetemp=output -m "integration"
test.fast:
python -m pytest -m "not (integration or slow)"
rm -rf output/
mkdir output/
python -m pytest --basetemp=output -m "integration and not slow"
# used by GitHub actions during CI workflow
test.coverage: coverage.unit coverage.integration
coverage.unit:
python -m pytest --cov=./ -m "not integration" --cov-report=xml:unit.coverage.xml
coverage.integration:
rm -rf output/
mkdir output/
python -m pytest --basetemp=output --cov=./ -m "integration" --cov-report=xml:integration.coverage.xml