Skip to content

Commit 323c8e9

Browse files
authored
Merge pull request #76 from ChEB-AI/unit_test_fail
fix pysmiles version
2 parents 29b7da5 + 9beec40 commit 323c8e9

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,26 @@ jobs:
1313

1414
steps:
1515
- uses: actions/checkout@v4
16+
1617
- name: Set up Python ${{ matrix.python-version }}
1718
uses: actions/setup-python@v5
1819
with:
1920
python-version: ${{ matrix.python-version }}
21+
2022
- name: Install dependencies
2123
run: |
2224
python -m pip install --upgrade pip
2325
python -m pip install --upgrade pip setuptools wheel
2426
python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
2527
python -m pip install -e .
26-
- name: Display Python version
27-
run: python -m unittest discover -s tests/unit
28+
29+
- name: Display Python & Installed Packages
30+
run: |
31+
python --version
32+
pip freeze
33+
34+
- name: Run Unit Tests
35+
run: python -m unittest discover -s tests/unit -v
36+
env:
37+
ACTIONS_STEP_DEBUG: true # Enable debug logs
38+
ACTIONS_RUNNER_DEBUG: true # Additional debug logs from Github Actions itself

chebai/train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def crawl_info(
9393

9494

9595
def collate(
96-
batch: List[Tuple[Molecule, torch.Tensor]]
96+
batch: List[Tuple[Molecule, torch.Tensor]],
9797
) -> Tuple[List[Molecule], torch.Tensor]:
9898
"""
9999
Collate function for DataLoader.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"urllib3",
3535
"transformers",
3636
"fastobo",
37-
"pysmiles",
37+
"pysmiles==1.1.2",
3838
"scikit-network",
3939
"svgutils",
4040
"matplotlib",

0 commit comments

Comments
 (0)