diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 39dbbd8..5bc78a2 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -6,6 +6,6 @@ ARG NODE_VERSION="lts/*" RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi USER vscode RUN pip3 --disable-pip-version-check --no-cache-dir install -U \ - 'poetry==1.1.13' \ + 'poetry==1.8.3' \ 'pip==22.1.2' RUN npm install -g @devcontainers/cli@v0.30.0 \ No newline at end of file diff --git a/.devcontainer/vm/Dockerfile b/.devcontainer/vm/Dockerfile index 39dbbd8..5bc78a2 100644 --- a/.devcontainer/vm/Dockerfile +++ b/.devcontainer/vm/Dockerfile @@ -6,6 +6,6 @@ ARG NODE_VERSION="lts/*" RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi USER vscode RUN pip3 --disable-pip-version-check --no-cache-dir install -U \ - 'poetry==1.1.13' \ + 'poetry==1.8.3' \ 'pip==22.1.2' RUN npm install -g @devcontainers/cli@v0.30.0 \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index e6d6a5e..df4ee74 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -7,7 +7,7 @@ assignees: '' --- -> [!Note] +> [!Note] > It may be quicker to check in with us on [Discord](https://discord.gg/QFjCpMjqRY) before logging your issue diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 3aedd9a..7b964b0 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -7,7 +7,7 @@ assignees: '' --- -> [!Note] +> [!Note] > It may be quicker to check in with us on [Discord](https://discord.gg/QFjCpMjqRY) before logging your issue **Is your feature request related to a problem? Please describe.** diff --git a/src/nbmake/pytest_plugin.py b/src/nbmake/pytest_plugin.py index 5e77e85..ae2f2ac 100644 --- a/src/nbmake/pytest_plugin.py +++ b/src/nbmake/pytest_plugin.py @@ -5,6 +5,8 @@ from pathlib import Path from typing import Any, Optional +from pytest import ExitCode + from .pytest_items import NotebookFile @@ -73,4 +75,15 @@ def pytest_terminal_summary(terminalreporter: Any, exitstatus: int, config: Any) # this message can be disabled with pytest --no-summary # but let us know if it is annoying you # ...we can also print diagnostics/stats here -- requests welcome - print(f"\nLearn more about nbmake at https://github.com/treebeardtech/nbmake\n") + try: + if os.environ.get("GITHUB_ACTIONS", False): + if exitstatus == ExitCode.TESTS_FAILED: + print( + f"\n* nbmake: Automate reading GitHub Actions logs with our bot: https://github.com/marketplace/treebeard-build\n" + ) + else: + print( + f"\nLearn more about nbmake at https://github.com/treebeardtech/nbmake\n" + ) + except: + pass diff --git a/tests/resources/a_test.py b/tests/resources/a_test.py index 4c55958..a0ff4ca 100644 --- a/tests/resources/a_test.py +++ b/tests/resources/a_test.py @@ -1,3 +1,2 @@ - def test_x(): - assert True \ No newline at end of file + assert True