-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtasks.py
96 lines (58 loc) · 1.58 KB
/
tasks.py
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
from invoke import task
@task
def read(ctx):
ctx.run("python github_tracker_bot/read_sheet.py")
@task
def test(ctx):
ctx.run("python -m unittest discover tests")
@task
def testbot(ctx):
ctx.run(f"python -m unittest tests/test_bot_unit.py")
@task
def testbotint(ctx):
ctx.run(f"python -m unittest tests/test_bot_integration.py")
@task
def testmongo(ctx):
ctx.run(f"python -m unittest tests/test_mongo_data_handler.py")
@task
def testfc(ctx):
ctx.run(f"python -m unittest tests/test_process_commits.py")
@task
def testmongoint(ctx):
ctx.run(f"python -m unittest tests/test_mongo_integration.py")
@task
def testextract(ctx):
ctx.run(f"python -m unittest tests/test_extract_unnecessary_diff.py")
@task
def testss(ctx):
ctx.run(f"python -m unittest tests/test_spreadsheet_to_list_of_user.py")
@task
def commit(ctx):
ctx.run("python github_tracker_bot/commit_scraper.py")
@task
def process(ctx):
ctx.run("python github_tracker_bot/process_commits.py")
@task
def bot(ctx):
ctx.run("python github_tracker_bot/bot.py")
@task
def botf(ctx):
ctx.run("python github_tracker_bot/bot_functions.py")
@task
def decide(ctx):
ctx.run("python github_tracker_bot/ai_decide_commits.py")
@task
def leaderbot(ctx):
ctx.run("python leader_bot/bot.py")
@task
def shfunc(ctx):
ctx.run("python leader_bot/sheet_functions.py")
@task
def dbf(ctx):
ctx.run("python leader_bot/db_functions.py")
@task
def lbf(ctx):
ctx.run("python leader_bot/leaderboard_functions.py")
@task
def smoke(ctx):
ctx.run("pytest -m smoke tests/smoke")