-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
43 lines (32 loc) · 1.25 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
40
41
42
43
profile:
python3 -m cProfile -s 'time' clipkit-runner.py tests/integration/samples/EOG092C0CZK_aa_aln.fasta -o output/test > output/large_profile.txt
run:
python3 -m clipkit-runner tests/integration/samples/12_YIL115C_Anc_2.253_aa_aln.fasta -o output/test --log
run.simple:
python3 -m clipkit-runner tests/integration/samples/simple.fa -o output/simple --log
install:
# install so clipkit command is available in terminal
python3 setup.py install
develop:
# https://setuptools.readthedocs.io/en/latest/setuptools.html#development-mode
python3 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:
python3 -m pytest -m "not (integration or slow)"
rm -rf output/
mkdir output/
python3 -m pytest --basetemp=output -m "integration and not slow"
# used by GitHub actions during CI workflow
test.coverage: coverage.unit coverage.integration
coverage.unit:
python3 -m pytest --cov=./ -m "not integration" --cov-report=xml:unit.coverage.xml
coverage.integration:
rm -rf output/
mkdir output/
python3 -m pytest --basetemp=output --cov=./ -m "integration" --cov-report=xml:integration.coverage.xml