-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtasks.py
More file actions
34 lines (27 loc) · 714 Bytes
/
tasks.py
File metadata and controls
34 lines (27 loc) · 714 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
30
31
32
33
34
"""
Invoke tasks
"""
from dotenv import load_dotenv
from invoke import task
from invoke.context import Context
load_dotenv()
@task
def hello(cxt: Context, name: str="world!") -> None:
"""Prints 'Hello, {name}'"""
cxt.run(f"echo Hello, {name}")
@task
def check_pythonpath(cxt: Context) -> None:
"""Check PYTHONPATH"""
cxt.run("echo $PYTHONPATH")
@task
def download_log(cxt: Context) -> None:
"""Download log"""
cxt.run("bash scripts/download_log.sh")
@task
def check_projects(cxt: Context) -> None:
"""Check projects"""
cxt.run("python3 src/check_projects.py")
@task
def check_runners(cxt: Context) -> None:
"""Check runners"""
cxt.run("python3 src/check_runners.py")