Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,26 @@ 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
ACTIONS_RUNNER_DEBUG: true # Additional debug logs from Github Actions itself
2 changes: 1 addition & 1 deletion chebai/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"urllib3",
"transformers",
"fastobo",
"pysmiles",
"pysmiles==1.1.2",
"scikit-network",
"svgutils",
"matplotlib",
Expand Down