Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
albertbou92 committed Aug 7, 2024
1 parent 2880504 commit 9b21196
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
12 changes: 7 additions & 5 deletions .github/unittest/install_dependencies.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
python -m pip install --upgrade pip
python -m pip install flake8 pytest pytest-cov hydra-core tqdm torch torchvision
python -m pip install rdkit==2023.3.3
python -m pip MolScore promptsmiles
python -m pip install flake8 pytest pytest-cov hydra-core tqdm

if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
# Not using nightly torch
python -m pip install torch torchvision
# python -m pip install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall

pip install torchrl
python -m pip torchrl
python -m pip install rdkit==2023.3.3
python -m pip MolScore promptsmiles

cd ../acegen-open
pip install -e .
6 changes: 1 addition & 5 deletions .github/unittest/install_dependencies_nightly.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
python -m pip install --upgrade pip
python -m pip install flake8 pytest pytest-cov hydra-core tqdm

# Not using nightly torch
python -m pip install torch torchvision
# python -m pip install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall

# Not testing these dependencies for now
python -m pip install rdkit==2023.3.3
# python -m pip MolScore promptsmiles
python -m pip MolScore promptsmiles

cd ../acegen-open
pip install -e .
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
bash .github/unittest/install_dependencies_nightly.sh
bash .github/unittest/install_dependencies.sh
- name: Test with pytest
run: |
pytest tests/ --cov=acegen
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ To create the conda / mamba environment, run
To install the required dependencies run the following commands. Replace `cu121` with your appropriate CUDA version (e.g., `cu118`, `cu117`, `cu102`).

pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu121
pip3 install flake8 pytest pytest-cov hydra-core tqdm wandb scipy
pip3 install flake8 pytest pytest-cov hydra-core tqdm wandb
pip3 install torchrl


### Optional dependencies

Unless you intend to define your own custom scoring functions, install MolScore by running

pip3 install rdkit==2023.3.3, joblib
pip3 install rdkit==2023.3.3
pip3 install MolScore

To use the scaffold decoration and fragment linking, install promptsmiles by running
Expand Down

0 comments on commit 9b21196

Please sign in to comment.