File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
1
name : Modal tests
2
2
3
3
on :
4
- # schedule:
5
- # # Mon/Wed/Fri at 03:39 UTC, see https://crontab.guru/
6
- # - cron: "39 3 * * 1,3,5"
4
+ schedule :
5
+ # Mon/Wed/Fri at 03:39 UTC, see https://crontab.guru/
6
+ - cron : " 39 3 * * 1,3,5"
7
7
workflow_dispatch :
8
8
9
9
concurrency :
Original file line number Diff line number Diff line change 1
1
import itertools
2
+ import uuid
3
+ from datetime import datetime
2
4
3
5
import pytest
4
6
5
7
modal = pytest .importorskip ("modal" )
6
8
9
+ # import MODAL_EXECUTORS to set up config correctly
10
+ from cubed .tests .utils import MODAL_EXECUTORS # isort: skip # noqa: F401
11
+
7
12
import asyncio
8
13
9
14
from cubed .runtime .asyncio import async_map_unordered
10
15
from cubed .runtime .executors .modal import modal_create_futures_func
11
16
from cubed .tests .runtime .utils import check_invocation_counts , deterministic_failure
12
17
13
- BASE_PATH = "s3://cubed-unittest/map_unordered"
18
+ UNIQUE_DIR_NAME = f"test-{ datetime .now ().strftime ('%Y%m%dT%H%M%S' )} -{ uuid .uuid4 ()} "
19
+ BASE_PATH = f"s3://cubed-unittest/map_unordered/{ UNIQUE_DIR_NAME } "
14
20
region = "us-east-1" # S3 region for above bucket
15
21
16
22
app = modal .App ("cubed-test-app" , include_source = True )
23
29
"mypy_extensions" , # for rechunker
24
30
"ndindex" ,
25
31
"networkx" ,
32
+ "psutil" ,
26
33
"pytest-mock" , # TODO: only needed for tests
27
34
"s3fs" ,
28
35
"tenacity" ,
You can’t perform that action at this time.
0 commit comments