Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (38 loc) · 1.48 KB
/
Copy pathMakefile
File metadata and controls
50 lines (38 loc) · 1.48 KB
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
44
45
46
47
48
49
50
.DEFAULT_GOAL := help
.PHONY: help sync notebooks check test-backend test-protocol build publish release release-image rebase-open-branches
help:
@echo "make sync prepare the locked backend, protocol and notebook environments"
@echo "make notebooks open JupyterLab in sbt2-notebooks"
@echo "make check run the hooks and both components' test suites"
@echo "make test-backend run the backend test suite"
@echo "make test-protocol run the protocol tests"
@echo "make release-image backfill: build the image, test it and push it to GHCR"
@echo "make build plan the tags of the merges since the last tag and build the newest"
@echo "make publish publish the release that make build left"
@echo "make release make build, then make publish"
@echo "make rebase-open-branches rebase the open local branches onto origin/main and push them"
sync:
uv --directory sbt2-backend sync --locked
uv --directory sbt2-protocol sync --locked
uv --directory sbt2-notebooks sync --locked
notebooks:
uv --directory sbt2-notebooks run --locked jupyter lab
check:
prek run --all-files --show-diff-on-failure
$(MAKE) test-backend
$(MAKE) test-protocol
test-backend:
uv --directory sbt2-backend run --locked pytest
test-protocol:
prek run protocol-tests --all-files
release-image:
scripts/release-image.sh
build:
scripts/release-build.sh
publish:
scripts/release-publish.sh
release:
$(MAKE) build
$(MAKE) publish
rebase-open-branches:
scripts/rebase-open-branches.sh