forked from openedx/xqueue-watcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (23 loc) · 788 Bytes
/
Makefile
File metadata and controls
29 lines (23 loc) · 788 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
help:
@echo ''
@echo 'Makefile for the xqueue-watcher'
@echo ''
@echo 'Usage:'
@echo ' make requirements sync dev dependencies with uv'
@echo ' make test run python unit-tests'
@echo ' make docker-build build the grader base Docker image'
@echo ' make local-run run locally with docker-compose'
@echo ' make clean delete generated byte code'
@echo ''
requirements:
uv sync
test: requirements
uv run pytest --cov=xqueue_watcher --cov-report=xml tests
docker-build:
docker build -t xqueue-watcher:local .
docker build -t grader-base:local -f grader_support/Dockerfile.base .
local-run:
docker compose up
clean:
find . -name '*.pyc' -delete
.PHONY: help requirements test docker-build local-run clean