Skip to content

Commit cae8ea7

Browse files
committed
finishing touches
1 parent c567ccb commit cae8ea7

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
- name: Install Python Dependencies
5555
run: pip install -r requirements/test-run.txt
5656
- name: Run Tests
57-
run: nox -s test -- --headless --no-cov
57+
run: nox -s test_short -- --headless --no-cov
5858
test-javascript:
5959
runs-on: ubuntu-latest
6060
steps:

docs/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,24 @@ ADD README.md ./
2727

2828
RUN pip install -e .[all]
2929

30+
# Add License
31+
# -----------
32+
Add LICENSE /app/
33+
3034
# Build the Docs
3135
# --------------
36+
ADD run_docs.py ./
37+
ADD docs/__init__.py ./docs/
3238
ADD docs/app.py ./docs/
3339
ADD docs/examples.py ./docs/
3440
ADD docs/source ./docs/source
3541

3642
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
3844

3945
# Define Entrypoint
4046
# -----------------
4147
ENV PORT 5000
4248
ENV IDOM_DEBUG_MODE=1
4349
ENV IDOM_CHECK_VDOM_SPEC=0
44-
CMD python -c "import docs; docs.run()"
50+
CMD python scripts/run_docs.py

noxfile.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,13 @@ def test(session: Session) -> None:
118118
session.notify("test_docs")
119119

120120

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+
121128
@nox.session
122129
@apply_standard_pip_upgrades
123130
def test_suite(session: Session) -> None:

scripts/run_docs.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from docs import run
2+
3+
4+
if __name__ == "__main__":
5+
run()

0 commit comments

Comments
 (0)