File tree 7 files changed +44
-36
lines changed
7 files changed +44
-36
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,11 @@ concurrency:
19
19
group : ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
20
20
cancel-in-progress : true
21
21
22
+ env :
23
+ FORCE_COLOR : " 1"
24
+ SQLALCHEMY_WARN_20 : " 1"
25
+ HYPOTHESIS_PROFILE : " ci"
26
+
22
27
jobs :
23
28
check_setuptools_install :
24
29
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ concurrency:
23
23
24
24
env :
25
25
FORCE_COLOR : " 1"
26
+ SQLALCHEMY_WARN_20 : " 1"
27
+ HYPOTHESIS_PROFILE : " ci"
26
28
27
29
jobs :
28
30
test_backends :
Original file line number Diff line number Diff line change 38
38
FORCE_COLOR : " 1"
39
39
ODBCSYSINI : " ${{ github.workspace }}/ci/odbc"
40
40
SQLALCHEMY_WARN_20 : " 1"
41
+ HYPOTHESIS_PROFILE : " ci"
41
42
42
43
jobs :
43
44
test_backends :
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ jobs:
160
160
- name : run doctest
161
161
# keep HOME because duckdb (which we use for doctests) wants to use
162
162
# that for extensions
163
- run : nix develop --ignore-environment --keep HOME -c just doctest
163
+ run : nix develop --ignore-environment --keep HOME --keep HYPOTHESIS_PROFILE - c just doctest
164
164
165
165
- name : generate api docs
166
166
run : nix develop --ignore-environment -c just docs-apigen --verbose
@@ -198,7 +198,7 @@ jobs:
198
198
- name : run doctests
199
199
# keep HOME because duckdb (which we use for doctests) wants to use
200
200
# that for extensions
201
- run : nix develop --ignore-environment --keep HOME -c just doctest
201
+ run : nix develop --ignore-environment --keep HOME --keep HYPOTHESIS_PROFILE - c just doctest
202
202
203
203
- name : build api docs
204
204
run : nix develop --ignore-environment -c just docs-apigen --verbose
Original file line number Diff line number Diff line change @@ -32,12 +32,12 @@ concurrency:
32
32
33
33
env :
34
34
FORCE_COLOR : " 1"
35
+ SQLALCHEMY_WARN_20 : " 1"
36
+ HYPOTHESIS_PROFILE : " ci"
35
37
36
38
jobs :
37
39
test_core :
38
40
name : Test ${{ matrix.os }} python-${{ matrix.python-version }}
39
- env :
40
- SQLALCHEMY_WARN_20 : " 1"
41
41
runs-on : ${{ matrix.os }}
42
42
strategy :
43
43
fail-fast : false
Original file line number Diff line number Diff line change
1
+ from __future__ import annotations
2
+
3
+ import os
4
+
5
+ import hypothesis as h
6
+
7
+ # setup hypothesis profiles
8
+ h .settings .register_profile (
9
+ "ci" ,
10
+ max_examples = 1000 ,
11
+ suppress_health_check = [h .HealthCheck .too_slow ],
12
+ deadline = None ,
13
+ )
14
+ h .settings .register_profile (
15
+ "dev" ,
16
+ max_examples = 50 ,
17
+ suppress_health_check = [h .HealthCheck .too_slow ],
18
+ deadline = None ,
19
+ )
20
+ h .settings .register_profile (
21
+ "debug" ,
22
+ max_examples = 10 ,
23
+ verbosity = h .Verbosity .verbose ,
24
+ suppress_health_check = [h .HealthCheck .too_slow ],
25
+ deadline = None ,
26
+ )
27
+
28
+ # load default hypothesis profile, either set HYPOTHESIS_PROFILE environment
29
+ # variable or pass --hypothesis-profile option to pytest, to see the generated
30
+ # examples try:
31
+ # pytest pyarrow -sv --hypothesis-profile=debug
32
+ h .settings .load_profile (os .environ .get ("HYPOTHESIS_PROFILE" , "dev" ))
Original file line number Diff line number Diff line change 1
- from __future__ import annotations
2
-
3
- import os
4
-
5
- import hypothesis as h
6
-
7
- # setup hypothesis profiles
8
- h .settings .register_profile (
9
- "ci" ,
10
- max_examples = 1000 ,
11
- suppress_health_check = [h .HealthCheck .too_slow ],
12
- deadline = None ,
13
- )
14
- h .settings .register_profile (
15
- "dev" ,
16
- max_examples = 50 ,
17
- suppress_health_check = [h .HealthCheck .too_slow ],
18
- deadline = None ,
19
- )
20
- h .settings .register_profile (
21
- "debug" ,
22
- max_examples = 10 ,
23
- verbosity = h .Verbosity .verbose ,
24
- suppress_health_check = [h .HealthCheck .too_slow ],
25
- deadline = None ,
26
- )
27
-
28
- # load default hypothesis profile, either set HYPOTHESIS_PROFILE environment
29
- # variable or pass --hypothesis-profile option to pytest, to see the generated
30
- # examples try:
31
- # pytest pyarrow -sv --hypothesis-profile=debug
32
- h .settings .load_profile (os .environ .get ("HYPOTHESIS_PROFILE" , "dev" ))
You can’t perform that action at this time.
0 commit comments