From 57f32bbf37aff16e6d772a6d2719c75a14528148 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 14 Oct 2025 13:44:37 +0000 Subject: [PATCH 01/26] Initial plan From 79e03fc5c5a605bbfaca4326945d660c85d79a60 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 14 Oct 2025 13:51:14 +0000 Subject: [PATCH 02/26] Replace pkg_resources with importlib.metadata Co-authored-by: cvraut <10603882+cvraut@users.noreply.github.com> --- whecho/_config.py | 4 ++-- whecho/_utilities.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/whecho/_config.py b/whecho/_config.py index 52a3bde..f10fa2f 100644 --- a/whecho/_config.py +++ b/whecho/_config.py @@ -2,7 +2,7 @@ import os import getpass -import pkg_resources +import importlib.metadata import toml import socket import platform @@ -13,7 +13,7 @@ except Exception: config_username = "user" DEFAULT_CONFIG = {'default_url': None, - 'version': pkg_resources.get_distribution('whecho').version, + 'version': importlib.metadata.version('whecho'), 'user': config_username, 'os': platform.system(), 'machine': "auto",} diff --git a/whecho/_utilities.py b/whecho/_utilities.py index 20a4b3d..54538d8 100644 --- a/whecho/_utilities.py +++ b/whecho/_utilities.py @@ -1,6 +1,6 @@ # Contains utility functions for the whecho project. -import pkg_resources +import importlib.metadata import os from whecho import _config as config import toml @@ -8,7 +8,7 @@ def get_version(): """Prints the version of whecho and exits.""" - print(pkg_resources.get_distribution('whecho').version) + print(importlib.metadata.version('whecho')) exit(0) def init(): From 8222fd54e15a8f3a1e101f37eabd8e1ff4b26464 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 14 Oct 2025 13:54:47 +0000 Subject: [PATCH 03/26] Add importlib-metadata backport for Python 3.6-3.7 compatibility Co-authored-by: cvraut <10603882+cvraut@users.noreply.github.com> --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 8eff242..52b117b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,6 +30,7 @@ python = ">=3.6" requests = ">=2.25.1" setuptools = ">=40.6.3" toml = ">=0.6.0" +importlib-metadata = {version = ">=1.0", python = "<3.8"} [build-system] requires = ["poetry-core>=1.0.0"] From e20cd1ec6d8c79cc3eb44442e98628c1fb12386d Mon Sep 17 00:00:00 2001 From: Raut Date: Tue, 14 Oct 2025 10:23:31 -0400 Subject: [PATCH 04/26] updated testing suite to remove windows 2019 and included py36 and py314 as other python versions to check against --- .github/workflows/pytest.yml | 14 ++++++++++---- tox.ini | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 5cc5fcf..5e68b93 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -20,20 +20,26 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [windows-2019, windows-2022, windows-latest, ubuntu-latest] + os: [windows-2022, windows-latest, ubuntu-latest] + python-version: ['3.6', '3.9', '3.14'] environment: test steps: - name: Checkout code uses: actions/checkout@v4 - - name: Set up Python + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: - python-version: 3.9 + python-version: ${{ matrix.python-version }} - name: Install Tox run: pip install tox - name: Run tests run: tox - + +tox.ini: + +[tox] +envlist = py36,py39,py314 # Minimum, stable, latest + diff --git a/tox.ini b/tox.ini index 9f0560e..5bb4c64 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py39 +envlist = py36,py39,py314 [testenv] passenv = From 5624ee5b44a46f0bf042786760925f7005ca39e4 Mon Sep 17 00:00:00 2001 From: Raut Date: Tue, 14 Oct 2025 10:30:20 -0400 Subject: [PATCH 05/26] removed tox lines at the end of the yml file --- .github/workflows/pytest.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 5e68b93..30c6f0f 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -38,8 +38,3 @@ jobs: - name: Run tests run: tox -tox.ini: - -[tox] -envlist = py36,py39,py314 # Minimum, stable, latest - From 59ca57ef9d11ac6f21022fc46afe1978eba22bac Mon Sep 17 00:00:00 2001 From: Raut Date: Tue, 14 Oct 2025 10:35:55 -0400 Subject: [PATCH 06/26] mapped python version to supported runners in gha --- .github/workflows/pytest.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 30c6f0f..afc3caa 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -20,8 +20,24 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [windows-2022, windows-latest, ubuntu-latest] - python-version: ['3.6', '3.9', '3.14'] + include: + # Python 3.9 on your specified Windows and Ubuntu versions + - os: windows-2022 + python-version: '3.9' + - os: windows-latest + python-version: '3.9' + - os: ubuntu-latest + python-version: '3.9' + # Python 3.6 on compatible runners (older versions support 3.6) + - os: windows-2019 + python-version: '3.6' + - os: ubuntu-20.04 + python-version: '3.6' + # Python 3.12 (latest stable) on compatible runners + - os: windows-latest + python-version: '3.14' + - os: ubuntu-latest + python-version: '3.14' environment: test steps: - name: Checkout code From 5c4c60b4bb4275e698e1a6f40e84efd17c8128cc Mon Sep 17 00:00:00 2001 From: Raut Date: Tue, 14 Oct 2025 10:50:19 -0400 Subject: [PATCH 07/26] switched depreciated windows-2019 to windows-2022 for python 3.6 testing --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 52b117b..66e593e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "whecho" -version = "0.0.5" +version = "0.0.6" description = "Linux echo with webhooks! ⚓" readme = "README.md" authors = [ From df521e83dee5a33af6160479af62b10c78b369fc Mon Sep 17 00:00:00 2001 From: Raut Date: Tue, 14 Oct 2025 10:51:23 -0400 Subject: [PATCH 08/26] actually added the correct file for the commit --- .github/workflows/pytest.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index afc3caa..8bc331b 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -21,19 +21,19 @@ jobs: strategy: matrix: include: - # Python 3.9 on your specified Windows and Ubuntu versions + # Python 3.9 is the primary dev version - os: windows-2022 python-version: '3.9' - os: windows-latest python-version: '3.9' - os: ubuntu-latest python-version: '3.9' - # Python 3.6 on compatible runners (older versions support 3.6) - - os: windows-2019 + # Python 3.6 is the minimum supported version + - os: windows-2022 python-version: '3.6' - os: ubuntu-20.04 python-version: '3.6' - # Python 3.12 (latest stable) on compatible runners + # Python 3.14 is the latest (Oct 14th) version - os: windows-latest python-version: '3.14' - os: ubuntu-latest From 9ea668e1b0857b6ccadc598bb0d32d16d757d8f0 Mon Sep 17 00:00:00 2001 From: Raut Date: Tue, 14 Oct 2025 10:57:26 -0400 Subject: [PATCH 09/26] added isolated build option to tox.ini file to hopefully get automated tests to work on windows with python3.6 --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index 5bb4c64..07d90da 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,6 @@ [tox] envlist = py36,py39,py314 +isolated_build = true [testenv] passenv = From c5cf3ba43bf0f5ebac5a172a7572adb5c0cec465 Mon Sep 17 00:00:00 2001 From: Raut Date: Tue, 14 Oct 2025 11:05:35 -0400 Subject: [PATCH 10/26] fixed the version dependent import for python 3.6 compatibility --- whecho/_config.py | 5 ++++- whecho/_utilities.py | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/whecho/_config.py b/whecho/_config.py index f10fa2f..4d9110e 100644 --- a/whecho/_config.py +++ b/whecho/_config.py @@ -2,7 +2,10 @@ import os import getpass -import importlib.metadata +try: # python >= 3.8 + import importlib.metadata as metadata +except ImportError: # python < 3.8 + import importlib_metadata as metadata import toml import socket import platform diff --git a/whecho/_utilities.py b/whecho/_utilities.py index 54538d8..4f8e899 100644 --- a/whecho/_utilities.py +++ b/whecho/_utilities.py @@ -1,6 +1,9 @@ # Contains utility functions for the whecho project. -import importlib.metadata +try: # python >= 3.8 + import importlib.metadata as metadata +except ImportError: # python < 3.8 + import importlib_metadata as metadata import os from whecho import _config as config import toml From e4379c3cc28bc32d7112be5f5e1d67547e99c8f7 Mon Sep 17 00:00:00 2001 From: Raut Date: Tue, 14 Oct 2025 11:09:50 -0400 Subject: [PATCH 11/26] actually fixed the metadata import --- whecho/_config.py | 2 +- whecho/_utilities.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/whecho/_config.py b/whecho/_config.py index 4d9110e..7d4ff4b 100644 --- a/whecho/_config.py +++ b/whecho/_config.py @@ -16,7 +16,7 @@ except Exception: config_username = "user" DEFAULT_CONFIG = {'default_url': None, - 'version': importlib.metadata.version('whecho'), + 'version': metadata.version('whecho'), 'user': config_username, 'os': platform.system(), 'machine': "auto",} diff --git a/whecho/_utilities.py b/whecho/_utilities.py index 4f8e899..62d0652 100644 --- a/whecho/_utilities.py +++ b/whecho/_utilities.py @@ -11,7 +11,7 @@ def get_version(): """Prints the version of whecho and exits.""" - print(importlib.metadata.version('whecho')) + print(metadata.version('whecho')) exit(0) def init(): From f10a39d21f209aec8c29e635b2b44cec0e4c6ccf Mon Sep 17 00:00:00 2001 From: Raut Date: Tue, 14 Oct 2025 11:10:16 -0400 Subject: [PATCH 12/26] added utf-8 restriction to tox.ini --- tox.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tox.ini b/tox.ini index 07d90da..73f9c3b 100644 --- a/tox.ini +++ b/tox.ini @@ -3,6 +3,8 @@ envlist = py36,py39,py314 isolated_build = true [testenv] +setenv = + PYTHONIOENCODING = utf-8 passenv = TEST_URL TEST_SLACK_URL From 811e97489ab131bc00967b3654a4f30712dfce34 Mon Sep 17 00:00:00 2001 From: Raut Date: Tue, 14 Oct 2025 11:16:02 -0400 Subject: [PATCH 13/26] added option to force skip missing runners in tox --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index 73f9c3b..4a6a52a 100644 --- a/tox.ini +++ b/tox.ini @@ -3,6 +3,7 @@ envlist = py36,py39,py314 isolated_build = true [testenv] +skip_missing_interpreters = true setenv = PYTHONIOENCODING = utf-8 passenv = From 210d6d19ef14494dd6fdf9286c2e8a6f2134b97f Mon Sep 17 00:00:00 2001 From: Raut Date: Tue, 14 Oct 2025 11:22:22 -0400 Subject: [PATCH 14/26] simplified tox.ini to not use explicit python defs, also commented out good runners from yml workflow --- .github/workflows/pytest.yml | 26 +++++++++++++------------- tox.ini | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 8bc331b..40cb32e 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -22,22 +22,22 @@ jobs: matrix: include: # Python 3.9 is the primary dev version - - os: windows-2022 - python-version: '3.9' - - os: windows-latest - python-version: '3.9' - - os: ubuntu-latest - python-version: '3.9' + # - os: windows-2022 + # python-version: '3.9' + # - os: windows-latest + # python-version: '3.9' + # - os: ubuntu-latest + # python-version: '3.9' # Python 3.6 is the minimum supported version - os: windows-2022 python-version: '3.6' - - os: ubuntu-20.04 - python-version: '3.6' - # Python 3.14 is the latest (Oct 14th) version - - os: windows-latest - python-version: '3.14' - - os: ubuntu-latest - python-version: '3.14' + # - os: ubuntu-20.04 + # python-version: '3.6' + # # Python 3.14 is the latest (Oct 14th) version + # - os: windows-latest + # python-version: '3.14' + # - os: ubuntu-latest + # python-version: '3.14' environment: test steps: - name: Checkout code diff --git a/tox.ini b/tox.ini index 4a6a52a..6f39107 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py36,py39,py314 +envlist = py isolated_build = true [testenv] From f12bb105d6eb1d5070c09b1aab41e85aac4b8d64 Mon Sep 17 00:00:00 2001 From: Raut Date: Tue, 14 Oct 2025 11:37:13 -0400 Subject: [PATCH 15/26] added back full test suite --- .github/workflows/pytest.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 40cb32e..8bc331b 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -22,22 +22,22 @@ jobs: matrix: include: # Python 3.9 is the primary dev version - # - os: windows-2022 - # python-version: '3.9' - # - os: windows-latest - # python-version: '3.9' - # - os: ubuntu-latest - # python-version: '3.9' + - os: windows-2022 + python-version: '3.9' + - os: windows-latest + python-version: '3.9' + - os: ubuntu-latest + python-version: '3.9' # Python 3.6 is the minimum supported version - os: windows-2022 python-version: '3.6' - # - os: ubuntu-20.04 - # python-version: '3.6' - # # Python 3.14 is the latest (Oct 14th) version - # - os: windows-latest - # python-version: '3.14' - # - os: ubuntu-latest - # python-version: '3.14' + - os: ubuntu-20.04 + python-version: '3.6' + # Python 3.14 is the latest (Oct 14th) version + - os: windows-latest + python-version: '3.14' + - os: ubuntu-latest + python-version: '3.14' environment: test steps: - name: Checkout code From 5dfd55bb4cfa3d0de2e8369176a01e617eb169ea Mon Sep 17 00:00:00 2001 From: Raut Date: Wed, 15 Oct 2025 18:18:00 -0400 Subject: [PATCH 16/26] try to switch to latest ubuntu to test python 3.6 --- .github/workflows/pytest.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 8bc331b..91e3029 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -22,22 +22,22 @@ jobs: matrix: include: # Python 3.9 is the primary dev version - - os: windows-2022 - python-version: '3.9' - - os: windows-latest - python-version: '3.9' + # - os: windows-2022 + # python-version: '3.9' + # - os: windows-latest + # python-version: '3.9' + # - os: ubuntu-latest + # python-version: '3.9' + # # Python 3.6 is the minimum supported version + # - os: windows-2022 + # python-version: '3.6' - os: ubuntu-latest - python-version: '3.9' - # Python 3.6 is the minimum supported version - - os: windows-2022 python-version: '3.6' - - os: ubuntu-20.04 - python-version: '3.6' - # Python 3.14 is the latest (Oct 14th) version - - os: windows-latest - python-version: '3.14' - - os: ubuntu-latest - python-version: '3.14' + # # Python 3.14 is the latest (Oct 14th) version + # - os: windows-latest + # python-version: '3.14' + # - os: ubuntu-latest + # python-version: '3.14' environment: test steps: - name: Checkout code From db5ec7b55ce4431fa82e7a3172b2fce9c8e414d6 Mon Sep 17 00:00:00 2001 From: Raut Date: Wed, 15 Oct 2025 18:20:58 -0400 Subject: [PATCH 17/26] try to switch to ubuntu-20.04 for python 3.6 test --- .github/workflows/pytest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 91e3029..f3a9f98 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -31,7 +31,7 @@ jobs: # # Python 3.6 is the minimum supported version # - os: windows-2022 # python-version: '3.6' - - os: ubuntu-latest + - os: ubuntu-20.04 python-version: '3.6' # # Python 3.14 is the latest (Oct 14th) version # - os: windows-latest From 265701602bc2e4a7aa005c3ec65872ced1d5e4d9 Mon Sep 17 00:00:00 2001 From: Raut Date: Wed, 15 Oct 2025 18:28:49 -0400 Subject: [PATCH 18/26] decide to consolidate python 3.6 testing to only windows runners on github actions --- .github/workflows/pytest.yml | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index f3a9f98..3af70cd 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -22,22 +22,21 @@ jobs: matrix: include: # Python 3.9 is the primary dev version - # - os: windows-2022 - # python-version: '3.9' - # - os: windows-latest - # python-version: '3.9' - # - os: ubuntu-latest - # python-version: '3.9' - # # Python 3.6 is the minimum supported version - # - os: windows-2022 - # python-version: '3.6' - - os: ubuntu-20.04 + - os: windows-2022 + python-version: '3.9' + - os: windows-latest + python-version: '3.9' + - os: ubuntu-latest + python-version: '3.9' + # Python 3.6 is the minimum supported version + - os: windows-2022 python-version: '3.6' - # # Python 3.14 is the latest (Oct 14th) version - # - os: windows-latest - # python-version: '3.14' - # - os: ubuntu-latest - # python-version: '3.14' + # github actions does not support any other runners with python 3.6 + # Python 3.14 is the latest (Oct 14th 2025) version + - os: windows-latest + python-version: '3.14' + - os: ubuntu-latest + python-version: '3.14' environment: test steps: - name: Checkout code From af10f2be7387ac47d83bf6237ab3bb0b3ff60e0e Mon Sep 17 00:00:00 2001 From: Chinmay Raut Date: Tue, 3 Mar 2026 14:30:40 -0500 Subject: [PATCH 19/26] added new discord webhook format url to test cases --- tests/test_whecho_simple.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_whecho_simple.py b/tests/test_whecho_simple.py index 10246e5..92ce9c3 100644 --- a/tests/test_whecho_simple.py +++ b/tests/test_whecho_simple.py @@ -44,9 +44,14 @@ def test_simple_slack(): def test_simple_webex(): # test webex url with python function simple_post('TEST_WEBEX_URL', False) + +def test_simple_discord(): + # test discord url with python function + simple_post('TEST_DISCORD_URL', False) if __name__ == "__main__": simple_post() # only test discord with main function (duplicated in test_auto_machine.py) test_simple_slack() test_simple_webex() + test_simple_discord() \ No newline at end of file From 71bba886fa3d42e9c3b7d4935fbc1365a2ed84f4 Mon Sep 17 00:00:00 2001 From: Chinmay Raut Date: Tue, 3 Mar 2026 14:31:35 -0500 Subject: [PATCH 20/26] should fix #21 --- whecho/_send_message.py | 1 + 1 file changed, 1 insertion(+) diff --git a/whecho/_send_message.py b/whecho/_send_message.py index b60a0f9..2aa071f 100644 --- a/whecho/_send_message.py +++ b/whecho/_send_message.py @@ -27,6 +27,7 @@ def post_simple(message, url, conf=None, debug=False): def get_data(conf,message,url,debug=False): """General get data function for all supported webhooks.""" url_keyword_map = {"discord.com": get_discord_data, + "discordapp.com": get_discord_data, "slack.com": get_slack_data, "webhook.office.com": get_teams_data, "webexapis.com": get_webex_data} From 291af6c86f26dcc8f6b534c247828cedb51ec4b1 Mon Sep 17 00:00:00 2001 From: Chinmay Raut Date: Tue, 3 Mar 2026 14:40:26 -0500 Subject: [PATCH 21/26] added the new URL secret to the workflows.yml file so that the runners can actually see it now --- .github/workflows/pytest.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 3af70cd..4387bb1 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -14,6 +14,7 @@ env: TEST_URL: ${{secrets.TEST_URL}} TEST_SLACK_URL: ${{secrets.TEST_SLACK_URL}} TEST_WEBEX_URL: ${{secrets.TEST_WEBEX_URL}} + TEST_DISCORD_URL: ${{secrets.TEST_DISCORD_URL}} jobs: test: From b58958245878e71b8200349d916828d6c31d75f0 Mon Sep 17 00:00:00 2001 From: Chinmay Raut Date: Tue, 3 Mar 2026 16:12:50 -0500 Subject: [PATCH 22/26] added some debug code to see what fuckery is happening with github actions --- tests/test_whecho_simple.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test_whecho_simple.py b/tests/test_whecho_simple.py index 92ce9c3..478b5db 100644 --- a/tests/test_whecho_simple.py +++ b/tests/test_whecho_simple.py @@ -54,4 +54,9 @@ def test_simple_discord(): simple_post() # only test discord with main function (duplicated in test_auto_machine.py) test_simple_slack() test_simple_webex() - test_simple_discord() \ No newline at end of file + # test_simple_discord() + # list out the names of all the environment variables + print("Environment variables: ", end="") + for key in os.environ.keys(): + print(key, end=", ") + print() \ No newline at end of file From 221d4f9bf4b889e7eef1729352b6d82e7c44a031 Mon Sep 17 00:00:00 2001 From: Chinmay Raut Date: Tue, 3 Mar 2026 16:15:20 -0500 Subject: [PATCH 23/26] gha debugging --- tests/test_whecho_simple.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tests/test_whecho_simple.py b/tests/test_whecho_simple.py index 478b5db..9f84768 100644 --- a/tests/test_whecho_simple.py +++ b/tests/test_whecho_simple.py @@ -47,16 +47,18 @@ def test_simple_webex(): def test_simple_discord(): # test discord url with python function - simple_post('TEST_DISCORD_URL', False) + # simple_post('TEST_DISCORD_URL', False) + # --- debugging code for github actions --- + # list out the names of all the environment variables + print("Environment variables: ", end="") + for key in os.environ.keys(): + print(key, end=", ") + print() if __name__ == "__main__": simple_post() # only test discord with main function (duplicated in test_auto_machine.py) test_simple_slack() test_simple_webex() - # test_simple_discord() - # list out the names of all the environment variables - print("Environment variables: ", end="") - for key in os.environ.keys(): - print(key, end=", ") - print() \ No newline at end of file + test_simple_discord() + \ No newline at end of file From 52ba25bb4e21acf20f04f53d480a20c4bf772bba Mon Sep 17 00:00:00 2001 From: Chinmay Raut Date: Tue, 3 Mar 2026 16:20:49 -0500 Subject: [PATCH 24/26] added -s flag to tox.ini to make sure pytest prints all stdout and stderr messages --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 6f39107..614f239 100644 --- a/tox.ini +++ b/tox.ini @@ -15,4 +15,4 @@ deps = toml requests commands = - pytest \ No newline at end of file + pytest -s \ No newline at end of file From 014ae52fdcb11ea49995f1a7a220756d3c0e600d Mon Sep 17 00:00:00 2001 From: Chinmay Raut Date: Tue, 3 Mar 2026 17:13:08 -0500 Subject: [PATCH 25/26] added the discord url to the tox.ini file as well to make sure it is exposed to the test environment --- tests/test_whecho_simple.py | 8 +------- tox.ini | 1 + 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/test_whecho_simple.py b/tests/test_whecho_simple.py index 9f84768..479e40c 100644 --- a/tests/test_whecho_simple.py +++ b/tests/test_whecho_simple.py @@ -47,13 +47,7 @@ def test_simple_webex(): def test_simple_discord(): # test discord url with python function - # simple_post('TEST_DISCORD_URL', False) - # --- debugging code for github actions --- - # list out the names of all the environment variables - print("Environment variables: ", end="") - for key in os.environ.keys(): - print(key, end=", ") - print() + simple_post('TEST_DISCORD_URL', False) if __name__ == "__main__": diff --git a/tox.ini b/tox.ini index 614f239..ddf4a7b 100644 --- a/tox.ini +++ b/tox.ini @@ -10,6 +10,7 @@ passenv = TEST_URL TEST_SLACK_URL TEST_WEBEX_URL + TEST_DISCORD_URL deps = pytest toml From 43e3d02a075a92a0ba050eb31187f8a284ad81c0 Mon Sep 17 00:00:00 2001 From: Chinmay Raut Date: Tue, 3 Mar 2026 17:19:08 -0500 Subject: [PATCH 26/26] removed the -s flag from the tox.ini file --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index ddf4a7b..a616d3b 100644 --- a/tox.ini +++ b/tox.ini @@ -16,4 +16,4 @@ deps = toml requests commands = - pytest -s \ No newline at end of file + pytest \ No newline at end of file