File tree Expand file tree Collapse file tree 4 files changed +21
-3
lines changed Expand file tree Collapse file tree 4 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 54
54
- name : Install Python Dependencies
55
55
run : pip install -r requirements/test-run.txt
56
56
- name : Run Tests
57
- run : nox -s test -- --headless --no-cov
57
+ run : nox -s test_short -- --headless --no-cov
58
58
test-javascript :
59
59
runs-on : ubuntu-latest
60
60
steps :
Original file line number Diff line number Diff line change @@ -27,18 +27,24 @@ ADD README.md ./
27
27
28
28
RUN pip install -e .[all]
29
29
30
+ # Add License
31
+ # -----------
32
+ Add LICENSE /app/
33
+
30
34
# Build the Docs
31
35
# --------------
36
+ ADD run_docs.py ./
37
+ ADD docs/__init__.py ./docs/
32
38
ADD docs/app.py ./docs/
33
39
ADD docs/examples.py ./docs/
34
40
ADD docs/source ./docs/source
35
41
36
42
RUN pip install -r requirements/build-docs.txt
37
- RUN sphinx-build -b html docs/source docs/build
43
+ RUN sphinx-build -W - b html docs/source docs/build
38
44
39
45
# Define Entrypoint
40
46
# -----------------
41
47
ENV PORT 5000
42
48
ENV IDOM_DEBUG_MODE=1
43
49
ENV IDOM_CHECK_VDOM_SPEC=0
44
- CMD python -c "import docs; docs.run()"
50
+ CMD python scripts/run_docs.py
Original file line number Diff line number Diff line change @@ -118,6 +118,13 @@ def test(session: Session) -> None:
118
118
session .notify ("test_docs" )
119
119
120
120
121
+ @nox .session
122
+ def test_short (session : Session ) -> None :
123
+ """Run the complete test suite"""
124
+ session .notify ("test_suite" , posargs = session .posargs )
125
+ session .notify ("test_docs" )
126
+
127
+
121
128
@nox .session
122
129
@apply_standard_pip_upgrades
123
130
def test_suite (session : Session ) -> None :
Original file line number Diff line number Diff line change
1
+ from docs import run
2
+
3
+
4
+ if __name__ == "__main__" :
5
+ run ()
You can’t perform that action at this time.
0 commit comments