@@ -75,17 +75,17 @@ def docs_in_docker(session: Session) -> None:
75
75
76
76
77
77
@nox .session
78
- def test_python (session : Session ) -> None :
78
+ def test (session : Session ) -> None :
79
79
"""Run the complete test suite"""
80
80
session .install ("--upgrade" , "pip" , "setuptools" , "wheel" )
81
- test_python_suite (session )
82
- test_python_types (session )
83
- test_python_style (session )
84
- test_python_docs (session )
81
+ test_suite (session )
82
+ test_types (session )
83
+ test_style (session )
84
+ test_docs (session )
85
85
86
86
87
87
@nox .session
88
- def test_python_suite (session : Session ) -> None :
88
+ def test_suite (session : Session ) -> None :
89
89
"""Run the Python-based test suite"""
90
90
session .env ["IDOM_DEBUG_MODE" ] = "1"
91
91
install_requirements_file (session , "test-env" )
@@ -101,7 +101,7 @@ def test_python_suite(session: Session) -> None:
101
101
102
102
103
103
@nox .session
104
- def test_python_types (session : Session ) -> None :
104
+ def test_types (session : Session ) -> None :
105
105
"""Perform a static type analysis of the codebase"""
106
106
install_requirements_file (session , "check-types" )
107
107
install_requirements_file (session , "pkg-deps" )
@@ -110,7 +110,7 @@ def test_python_types(session: Session) -> None:
110
110
111
111
112
112
@nox .session
113
- def test_python_style (session : Session ) -> None :
113
+ def test_style (session : Session ) -> None :
114
114
"""Check that style guidelines are being followed"""
115
115
install_requirements_file (session , "check-style" )
116
116
session .run ("flake8" , "src/idom" , "tests" , "docs" )
@@ -126,32 +126,14 @@ def test_python_style(session: Session) -> None:
126
126
127
127
128
128
@nox .session
129
- def test_python_docs (session : Session ) -> None :
129
+ def test_docs (session : Session ) -> None :
130
130
"""Verify that the docs build and that doctests pass"""
131
131
install_requirements_file (session , "build-docs" )
132
132
install_idom_dev (session , extras = "all" )
133
133
session .run ("sphinx-build" , "-b" , "html" , "docs/source" , "docs/build" )
134
134
session .run ("sphinx-build" , "-b" , "doctest" , "docs/source" , "docs/build" )
135
135
136
136
137
- @nox .session
138
- def test_javascript (session : Session ) -> None :
139
- """Verify that the docs build and that doctests pass"""
140
- app_dir = HERE / "src" / "idom" / "client" / "app"
141
- session .chdir (str (app_dir ))
142
- session .run ("npm" , "install" , external = True )
143
- for package_dir in (app_dir / "packages" ).glob ("*" ):
144
- session .run (
145
- "npm" ,
146
- "--prefix" ,
147
- str (package_dir .relative_to (app_dir )),
148
- "run" ,
149
- "test" ,
150
- external = True ,
151
- )
152
- session .chdir (str (HERE ))
153
-
154
-
155
137
@nox .session
156
138
def commits_since_last_tag (session : Session ) -> None :
157
139
"""A basic script for outputing changelog info"""
0 commit comments