diff --git a/.github/unittest/install_dependencies.sh b/.github/unittest/install_dependencies.sh index 256643a..795b922 100644 --- a/.github/unittest/install_dependencies.sh +++ b/.github/unittest/install_dependencies.sh @@ -1,15 +1,17 @@ +# Upgrade pip python -m pip install --upgrade pip -python -m pip install flake8 pytest pytest-cov hydra-core tqdm -# Not using nightly torch +# Install dependencies +python -m pip install flake8 pytest pytest-cov hydra-core tqdm python -m pip install torch torchvision -# python -m pip install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu --force-reinstall -python -m pip torchrl -python -m pip install rdkit==2023.3.3 -python -m pip MolScore -python -m pip promptsmiles -python -m pip transformers +# Ensure dependencies are installed in the right order +python -m pip install transformers promptsmiles torchrl rdkit==2023.3.3 MolScore + +# Verify installations +python -c "import transformers; print(transformers.__version__)" +python -c "import promptsmiles; print(promptsmiles.__version__)" +# Install local package cd ../acegen-open pip install -e .