From 71ff8f20c9ed64682da020f20a08170484d074cc Mon Sep 17 00:00:00 2001 From: aditya0by0 Date: Mon, 3 Mar 2025 22:00:47 +0100 Subject: [PATCH 1/6] Add debug logs to workflow --- .github/workflows/test.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b0792c99..4440c777 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,15 +13,29 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + - name: Install dependencies run: | python -m pip install --upgrade pip python -m pip install --upgrade pip setuptools wheel python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu python -m pip install -e . - - name: Display Python version - run: python -m unittest discover -s tests/unit + + - name: Display Python & Installed Packages + run: | + python --version + pip freeze + + - name: Run Unit Tests + run: python -m unittest discover -s tests/unit -v + env: + ACTIONS_STEP_DEBUG: true # Enable debug logs + + # SSH Debugging (Optional, Uncomment if needed) + # - name: Debug with SSH + # uses: mxschmitt/action-tmate@v3 From afc6ee01e19367d0fc30fce1d3c6f9ef9f49a940 Mon Sep 17 00:00:00 2001 From: aditya0by0 Date: Mon, 3 Mar 2025 22:15:39 +0100 Subject: [PATCH 2/6] debug logs from github actions --- .github/workflows/test.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4440c777..d1097c80 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,7 +35,12 @@ jobs: run: python -m unittest discover -s tests/unit -v env: ACTIONS_STEP_DEBUG: true # Enable debug logs - - # SSH Debugging (Optional, Uncomment if needed) - # - name: Debug with SSH - # uses: mxschmitt/action-tmate@v3 + ACTIONS_RUNNER_DEBUG: true # Additional debug logs from Github Actions itself + + # SSH Debugging (Optional) + # Uncomment this step to open an SSH session into the GitHub Actions runner. + # This helps debug issues that occur only in CI by allowing manual inspection. + # Once enabled, GitHub will print an SSH command in the logs, which you can use to connect. + # To exit the session and continue the workflow, type 'exit' in the terminal. + #- name: Debug with SSH + # uses: mxschmitt/action-tmate@v3 From 22babc62e202382f45a3e0edd4ce6bdf677710d1 Mon Sep 17 00:00:00 2001 From: aditya0by0 Date: Tue, 4 Mar 2025 00:01:28 +0100 Subject: [PATCH 3/6] action workflow error - black format fix --- chebai/train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chebai/train.py b/chebai/train.py index 06deec27..cc31d6ea 100644 --- a/chebai/train.py +++ b/chebai/train.py @@ -93,7 +93,7 @@ def crawl_info( def collate( - batch: List[Tuple[Molecule, torch.Tensor]] + batch: List[Tuple[Molecule, torch.Tensor]], ) -> Tuple[List[Molecule], torch.Tensor]: """ Collate function for DataLoader. From c0c167a46b242afe762ec011181a1c815112906c Mon Sep 17 00:00:00 2001 From: aditya0by0 Date: Tue, 4 Mar 2025 12:00:39 +0100 Subject: [PATCH 4/6] activate ssh debug --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d1097c80..f68953e3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -42,5 +42,5 @@ jobs: # This helps debug issues that occur only in CI by allowing manual inspection. # Once enabled, GitHub will print an SSH command in the logs, which you can use to connect. # To exit the session and continue the workflow, type 'exit' in the terminal. - #- name: Debug with SSH - # uses: mxschmitt/action-tmate@v3 + - name: Debug with SSH + uses: mxschmitt/action-tmate@v3 From 6bc3d38dd5f63958fa412f5d73f41f9405ad548d Mon Sep 17 00:00:00 2001 From: aditya0by0 Date: Tue, 4 Mar 2025 18:58:21 +0100 Subject: [PATCH 5/6] remove ssh debugging --- .github/workflows/test.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f68953e3..dcd47445 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,11 +36,3 @@ jobs: env: ACTIONS_STEP_DEBUG: true # Enable debug logs ACTIONS_RUNNER_DEBUG: true # Additional debug logs from Github Actions itself - - # SSH Debugging (Optional) - # Uncomment this step to open an SSH session into the GitHub Actions runner. - # This helps debug issues that occur only in CI by allowing manual inspection. - # Once enabled, GitHub will print an SSH command in the logs, which you can use to connect. - # To exit the session and continue the workflow, type 'exit' in the terminal. - - name: Debug with SSH - uses: mxschmitt/action-tmate@v3 From 9beec40a4873994b3b668d5523d3cef2f2776fef Mon Sep 17 00:00:00 2001 From: aditya0by0 Date: Wed, 5 Mar 2025 15:52:06 +0100 Subject: [PATCH 6/6] pin pysmiles version to 1.1.2 - https://github.com/ChEB-AI/python-chebai/issues/75#issuecomment-2698455984 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 58bfc75b..c391212c 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ "urllib3", "transformers", "fastobo", - "pysmiles", + "pysmiles==1.1.2", "scikit-network", "svgutils", "matplotlib",