-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile
33 lines (23 loc) · 1.03 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
# pgsc_calc/Makefile
# Makefile to simplify installation and testing, try make help
install: ## Install and check dependencies
@java --version
@docker version
curl -s https://get.nextflow.io | bash
nextflow pull pgscatalog/pgsc_calc
python3 -m pip install --user pytest-workflow pandas requests
run: ## Run an example workflow
nextflow run pgscatalog/pgsc_calc -profile test,docker
test: clean pytest ## Run pytest in a clean environment
test-arm: clean pytest-arm
pytest:
PROFILE=docker pytest --kwdof --git-aware --tag fast
pytest-arm:
PROFILE=arm pytest --kwdof --git-aware --tag fast
pytest-correlation:
PROFILE=arm pytest --kwdof --git-aware --tag correlation --ignore tests/bin/test_samplesheet_to_json.py
clean: ## Clean temporary files
rm -rf ./work ./results ./__pycache__ ./.nextflow.* ./.pytest_cache ./output
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: install run test clean pytest help testm1 pytestm1