File tree 2 files changed +27
-0
lines changed
2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -396,6 +396,11 @@ jobs:
396
396
-x test_subprocess \
397
397
-x test_signal \
398
398
-x test_sysconfig
399
+ - uses : actions/upload-artifact@v3
400
+ if : always()
401
+ with :
402
+ name : hypothesis-example-db
403
+ path : .hypothesis/examples/
399
404
400
405
401
406
build_asan :
Original file line number Diff line number Diff line change
1
+ import os
2
+
1
3
try :
2
4
import hypothesis
3
5
except ImportError :
11
13
suppress_health_check = [hypothesis .HealthCheck .too_slow ],
12
14
)
13
15
hypothesis .settings .load_profile ("slow-is-ok" )
16
+
17
+ # For local development, we'll write to the default on-local-disk database
18
+ # of failing examples, and also use a pull-through cache to automatically
19
+ # replay any failing examples discovered in CI. For details on how this
20
+ # works, see https://hypothesis.readthedocs.io/en/latest/database.html
21
+ if "CI" not in os .environ :
22
+ from hypothesis .database import (
23
+ GitHubArtifactDatabase ,
24
+ MultiplexedDatabase ,
25
+ ReadOnlyDatabase ,
26
+ )
27
+
28
+ hypothesis .settings .register_profile (
29
+ "cpython-local-dev" ,
30
+ database = MultiplexedDatabase (
31
+ hypothesis .settings .default .database ,
32
+ ReadOnlyDatabase (GitHubArtifactDatabase ("python" , "cpython" )),
33
+ ),
34
+ )
35
+ hypothesis .settings .load_profile ("cpython-local-dev" )
You can’t perform that action at this time.
0 commit comments