-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (25 loc) · 880 Bytes
/
Makefile
File metadata and controls
38 lines (25 loc) · 880 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
UV := uv
.PHONY: test test_cov build publish release install-dev
install-dev:
@echo "Installing development dependencies..."
@$(UV) sync --all-groups --extra all
@echo "Development dependencies installed"
build:
@echo "Building the project..."
@$(UV) build
@echo "Build completed"
publish:
@echo "Publishing to PyPI..."
@$(UV) publish -t $(PYPI_TOKEN)
@echo "Published successfully"
release: build
@echo "Running release script..."
@bash scripts/release.sh $(ARGS)
test:
@echo "Running all tests for sqlnotify..."
@docker compose run --remove-orphans sqlnotify bash -c "$(UV) run pytest"
@echo "All tests completed"
test_cov:
@echo "Running all tests with coverage for sqlnotify..."
@docker compose run --remove-orphans sqlnotify bash -c "$(UV) run pytest --cov=sqlnotify --cov-report=html"
@echo "All tests completed with coverage report generated"