Debian Codegraph @

tests/functional/rnd/02-lib-python-in-job/flow.cylc

raw
1 [scheduler]
2 [[events]]
3
4 [scheduling]
5 [[graph]]
6 R1 = foo
7
8 [runtime]
9 [[foo]]
10 script = """
11 # check PYTHONPATH is set correctly
12 grep -q "${CYLC_WORKFLOW_RUN_DIR}/lib/python" <<< "${PYTHONPATH}"
13
14 # run a toy example
15 python3 -c '
16 from pub import beer
17 assert beer.drink() == "98 bottles of beer on the wall."
18 assert beer.drink() == "97 bottles of beer on the wall."
19 assert beer.drink() == "96 bottles of beer on the wall."
20 '
21 """