-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (34 loc) · 1.03 KB
/
Makefile
File metadata and controls
46 lines (34 loc) · 1.03 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
install:
pip install --upgrade pip &&\
pip install -r requirements.txt
test:
python -m pytest -vv --cov=main --cov=mylib test_*.py
format:
black *.py
lint:
ruff check *.py mylib/*.py
container-lint:
docker run --rm -i hadolint/hadolint < Dockerfile
refactor: format lint
deploy:
#deploy goes here
all: install lint test format deploy
generate_and_push:
# Create the markdown file
python test_main.py # Replace with the actual command to generate the markdown
# Add, commit, and push the generated files to GitHub
@if [ -n "$$(git status --porcelain)" ]; then \
git config --local user.email "action@github.com"; \
git config --local user.name "GitHub Action"; \
git add .; \
git commit -m "Add SQL log"; \
git push; \
else \
echo "No changes to commit. Skipping commit and push."; \
fi
extract:
python main.py extract
transform_load:
python main.py transform_load
query:
python main.py run_query "SELECT Flavour, Sugars_g, Size FROM baskin_icecream WHERE Size = 'Reg114g' ORDER BY Sugars_g DESC LIMIT 5;"