-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbb.edn
More file actions
56 lines (49 loc) · 2.68 KB
/
bb.edn
File metadata and controls
56 lines (49 loc) · 2.68 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
51
52
53
54
55
56
{:paths ["src" "test"]
:deps {org.babashka/http-client {:mvn/version "0.4.15"}
cheshire/cheshire {:mvn/version "5.12.0"}
com.taoensso/timbre {:mvn/version "6.3.1"}
org.scicloj/noj {:mvn/version "2-beta4"}
scicloj/tablecloth {:mvn/version "7.021"}
scicloj/metamorph {:mvn/version "0.2.0"}
techascent/tech.ml.dataset {:mvn/version "7.021"}}
:tasks
{:requires ([babashka.fs :as fs])
:init (do
(def version "1.0.0"))
run:oura {:doc "Run ouraring with batch processing"
:task (do
(println "\nRun ouraring with batch processing")
(let [args *command-line-args*
batch-size (or (nth args 2 nil) "50")]
(shell (format "bb -cp src -m training-personal-data.ouraring %s %s --batch-size %s"
(first args) (second args) batch-size))))}
run:ml {:doc "Run ML analysis on Oura Ring data"
:task (do
(println "\nRunning ML analysis")
(let [args *command-line-args*]
(shell (format "bb -cp src -m training-personal-data.ml.core %s %s"
(first args) (second args)))))}
run:week-insight {:doc "Generate weekly insights from Oura Ring data using GPT"
:task (do
(println "\nGenerating weekly insights from Oura Ring data")
(let [args *command-line-args*]
(shell (format "bb -cp src -m training-personal-data.insights.week %s"
(first args)))))}
run:wahoo {:doc "Run wahoo endpoint with date range (YYYY-MM-DD YYYY-MM-DD)"
:task (do
(println "\nRun wahoo endpoint")
(let [args *command-line-args*]
(shell (format "bb -cp src -m training-personal-data.wahoo %s %s"
(first args) (second args)))))}
test {:doc "Run all tests"
:task (do
(println "\nRunning tests...")
(shell "bb -cp test:src -m training-personal-data.test-runner"))}
test:pipeline {:doc "Run pipeline tests only"
:task (do
(println "\nRunning pipeline tests...")
(shell "bb -cp test:src -e \"(require '[training-personal-data.core.pipeline-test]) (clojure.test/run-tests 'training-personal-data.core.pipeline-test)\""))}
test:working {:doc "Run only working tests"
:task (do
(println "\nRunning working tests...")
(shell "bb test:pipeline"))}}}