-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (20 loc) · 825 Bytes
/
Makefile
File metadata and controls
29 lines (20 loc) · 825 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
install-dev:
pip install -e ".[dev]"
test:
pytest -n auto -m "not integration" --junitxml=test-results/junit-unit.xml
clone-upstream:
if [ -d "./_sqlmesh_upstream" ]; then cd ./_sqlmesh_upstream && git pull; else git clone --depth=1 git@github.com:TobikoData/sqlmesh.git ./_sqlmesh_upstream; fi
engine-%-up:
cd _sqlmesh_upstream && make engine-docker-${*}-up
integration-test: clone-upstream engine-trino-up engine-postgres-up
pytest -n auto -m "integration" --junitxml=test-results/junit-integration.xml
install-pre-commit:
pre-commit install
style:
pre-commit run --all-files
clean:
rm -fr *.egg-info test-results .cache _sqlmesh_upstream logs .mypy_cache .pytest_cache .ruff_cache dist
package:
pip3 install build && python3 -m build
publish: package
pip3 install twine && python3 -m twine upload dist/*