Skip to content

Commit 17e1223

Browse files
pre-commit, poetry update and actions msg (#124)
1 parent 30c3c66 commit 17e1223

File tree

6 files changed

+19
-7
lines changed

6 files changed

+19
-7
lines changed

.devcontainer/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ ARG NODE_VERSION="lts/*"
66
RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
77
USER vscode
88
RUN pip3 --disable-pip-version-check --no-cache-dir install -U \
9-
'poetry==1.1.13' \
9+
'poetry==1.8.3' \
1010
'pip==22.1.2'
1111
RUN npm install -g @devcontainers/[email protected]

.devcontainer/vm/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ ARG NODE_VERSION="lts/*"
66
RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
77
USER vscode
88
RUN pip3 --disable-pip-version-check --no-cache-dir install -U \
9-
'poetry==1.1.13' \
9+
'poetry==1.8.3' \
1010
'pip==22.1.2'
1111
RUN npm install -g @devcontainers/[email protected]

.github/ISSUE_TEMPLATE/bug_report.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ assignees: ''
77

88
---
99

10-
> [!Note]
10+
> [!Note]
1111
> It may be quicker to check in with us on [Discord](https://discord.gg/QFjCpMjqRY) before logging your issue
1212
1313

.github/ISSUE_TEMPLATE/feature_request.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ assignees: ''
77

88
---
99

10-
> [!Note]
10+
> [!Note]
1111
> It may be quicker to check in with us on [Discord](https://discord.gg/QFjCpMjqRY) before logging your issue
1212
1313
**Is your feature request related to a problem? Please describe.**

src/nbmake/pytest_plugin.py

+14-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
from pathlib import Path
66
from typing import Any, Optional
77

8+
from pytest import ExitCode
9+
810
from .pytest_items import NotebookFile
911

1012

@@ -73,4 +75,15 @@ def pytest_terminal_summary(terminalreporter: Any, exitstatus: int, config: Any)
7375
# this message can be disabled with pytest --no-summary
7476
# but let us know if it is annoying you
7577
# ...we can also print diagnostics/stats here -- requests welcome
76-
print(f"\nLearn more about nbmake at https://github.com/treebeardtech/nbmake\n")
78+
try:
79+
if os.environ.get("GITHUB_ACTIONS", False):
80+
if exitstatus == ExitCode.TESTS_FAILED:
81+
print(
82+
f"\n* nbmake: Automate reading GitHub Actions logs with our bot: https://github.com/marketplace/treebeard-build\n"
83+
)
84+
else:
85+
print(
86+
f"\nLearn more about nbmake at https://github.com/treebeardtech/nbmake\n"
87+
)
88+
except:
89+
pass

tests/resources/a_test.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
21
def test_x():
3-
assert True
2+
assert True

0 commit comments

Comments
 (0)