File tree Expand file tree Collapse file tree 4 files changed +31
-6
lines changed Expand file tree Collapse file tree 4 files changed +31
-6
lines changed Original file line number Diff line number Diff line change @@ -46,10 +46,16 @@ jobs:
46
46
python-version : ${{ matrix.python-version }}
47
47
48
48
- name : Install package
49
- run : python -m pip install .[test]
49
+ run : python -m pip install " .[test]"
50
50
51
51
- name : Test package
52
- run : python -m pytest -ra
52
+ run : python -m pytest
53
+
54
+ - name : Install minimum versions
55
+ run : python -m pip install ".[test]" -c tests/constraints.txt
56
+
57
+ - name : Test minimum versions
58
+ run : python -m pytest
53
59
54
60
pass :
55
61
if : always()
Original file line number Diff line number Diff line change 5
5
nox .options .sessions = ["lint" , "pylint" , "tests" ]
6
6
7
7
8
- @nox .session
8
+ @nox .session ( reuse_venv = True )
9
9
def lint (session : nox .Session ) -> None :
10
10
"""
11
11
Run the linter.
@@ -23,6 +23,15 @@ def tests(session: nox.Session) -> None:
23
23
session .run ("pytest" , * session .posargs )
24
24
25
25
26
+ @nox .session (reuse_venv = True )
27
+ def minimums (session : nox .Session ) -> None :
28
+ """
29
+ Run the unit and regular tests.
30
+ """
31
+ session .install (".[test]" , "-ctests/constraints.txt" )
32
+ session .run ("pytest" , * session .posargs )
33
+
34
+
26
35
@nox .session
27
36
def pylint (session : nox .Session ) -> None :
28
37
"""
@@ -34,7 +43,7 @@ def pylint(session: nox.Session) -> None:
34
43
session .run ("pylint" , "src" , * session .posargs )
35
44
36
45
37
- @nox .session
46
+ @nox .session ( reuse_venv = True )
38
47
def build (session : nox .Session ) -> None :
39
48
"""
40
49
Build an SDist and wheel.
Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ dependencies = [
43
43
' importlib_resources; python_version<"3.9"' ,
44
44
' lz4' ,
45
45
' numpy >=1.13.3' ,
46
- ' plotext >=5.2.2 ' ,
47
- ' rich >=12.0.0 ' ,
46
+ ' plotext >=5.2.7 ' ,
47
+ ' rich >=13.3.3 ' ,
48
48
' textual >=0.18.0' ,
49
49
' typing_extensions; python_version<"3.8"' ,
50
50
' uproot >=4.2.1' ,
@@ -85,6 +85,8 @@ xfail_strict = true
85
85
filterwarnings = [
86
86
" error" ,
87
87
" ignore:can't resolve package from __spec__ or __package__, falling back on __name__ and __path__:ImportWarning" , # PyPy NumPy
88
+ " ignore:module 'sre_.*' is deprecated:DeprecationWarning:awkward" , # Awkward 1
89
+ " ignore: pkg_resources is deprecated as an API:DeprecationWarning:uproot" , # Uproot 4
88
90
]
89
91
log_cli_level = " info"
90
92
testpaths = [" tests" ]
Original file line number Diff line number Diff line change
1
+ awkward<2
2
+ click ==8.0.0
3
+ hist ==2.4.0; python_version<"3.11"
4
+ hist ==2.6.0; python_version=="3.11"
5
+ plotext ==5.2.7
6
+ rich ==13.3.3
7
+ textual ==0.18.0
8
+ uproot ==4.2.1
You can’t perform that action at this time.
0 commit comments