-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (32 loc) · 878 Bytes
/
Makefile
File metadata and controls
42 lines (32 loc) · 878 Bytes
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
.PHONY: test-py test-r-xcms test-r-stats test-all docker-build docker-up verify-parity setup lint
# Python tests
test-py:
uv run pytest packages/common/metabodata/tests/ -v
# R tests
test-r-xcms:
cd packages/engines/xcms-worker && \
Rscript -e "testthat::test_dir('tests/testthat/')"
test-r-stats:
cd packages/engines/stats-worker && \
Rscript -e "testthat::test_dir('tests/testthat/')"
# All tests
test-all: test-py test-r-xcms test-r-stats
# Lint
lint:
uv run ruff check packages/common/
uv run mypy packages/common/metabodata/
# Docker
docker-build:
docker compose build
docker-up:
docker compose up -d
docker-down:
docker compose down
# Verification
verify-parity:
Rscript scripts/verify_parity.R
# Dev setup
setup:
uv sync --all-extras
@echo "Python dependencies installed."
@echo "For R dependencies, run renv::restore() in each engine directory."