-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #562 from DeepRank/557_release_dev_3.0.0_gcroci2
release: merge dev with main for release 3.0.0
- Loading branch information
Showing
121 changed files
with
8,008 additions
and
5,774 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ name: "Install Python and DeepRank2" | |
description: "Installs Python, updates pip and installs DeepRank2 together with its dependencies." | ||
|
||
inputs: | ||
|
||
python-version: | ||
required: false | ||
description: "The Python version to use. Specify major and minor version, e.g. '3.10'." | ||
|
@@ -14,23 +13,29 @@ inputs: | |
description: "The extras dependencies packages to be installed, for instance 'dev' or 'dev,publishing,notebooks'." | ||
default: "test" | ||
|
||
runs: | ||
pkg-installation-type: | ||
required: false | ||
description: "The package installation type to install, the latest released version on PyPI ('latest') or the GitHub repository one ('repository')." | ||
default: "repository" | ||
|
||
runs: | ||
using: "composite" | ||
|
||
steps: | ||
- name: Cancel Previous Runs and Set up Python | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
access_token: ${{ github.token }} | ||
- uses: actions/checkout@v3 | ||
- name: Setup conda | ||
uses: s-weigand/setup-conda@v1 | ||
with: | ||
update-conda: true | ||
python-version: ${{ inputs.python-version }} | ||
conda-channels: anaconda | ||
- run: conda --version | ||
conda-channels: pytorch, pyg, bioconda, defaults, sbl, conda-forge | ||
- run: | | ||
conda --version | ||
conda env list | ||
shell: bash {0} | ||
- name: Python info | ||
shell: bash -e {0} | ||
|
@@ -43,44 +48,25 @@ runs: | |
CMAKE_INSTALL_PREFIX: .local | ||
if: runner.os == 'Linux' | ||
run: | | ||
# Install dependencies not handled by setuptools | ||
# Install deeprank2 conda dependencies | ||
## DSSP | ||
sudo apt-get install -y dssp | ||
conda install -c sbl dssp>=4.2.2.1 | ||
## MSMS | ||
conda install -c bioconda msms | ||
conda install -c bioconda msms>=2.6.1 | ||
## PyTorch, PyG, PyG adds | ||
### Installing for CPU only on the CI | ||
conda install pytorch torchvision torchaudio cpuonly -c pytorch | ||
conda install pyg -c pyg | ||
pip install torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-$(python3 -c "import torch; print(torch.__version__)")+cpu.html | ||
conda install pytorch=2.1.1 torchvision=0.16.1 torchaudio=2.1.1 cpuonly=2.0.* -c pytorch | ||
conda install pyg=2.4.0 -c pyg | ||
pip install torch_scatter==2.1.2 torch_sparse==0.6.18 torch_cluster==1.6.3 torch_spline_conv==1.2.2 -f https://data.pyg.org/whl/torch-2.1.0+cpu.html | ||
- name: Install dependencies on MacOS | ||
shell: bash {0} | ||
env: | ||
CMAKE_INSTALL_PREFIX: .local | ||
if: runner.os == 'macOS' | ||
run: | | ||
# Install dependencies not handled by setuptools | ||
# Install dependencies not handled by setuptools | ||
## DSSP | ||
git clone https://github.com/PDB-REDO/libcifpp.git --recurse-submodules | ||
cd libcifpp | ||
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=$HOME/.local -DCMAKE_BUILD_TYPE=Release | ||
cmake --build build | ||
cmake --install build | ||
####### | ||
git clone https://github.com/mhekkel/libmcfp.git | ||
cd libmcfp | ||
mkdir build | ||
cd build | ||
cmake .. | ||
cmake --build . | ||
cmake --install . | ||
####### | ||
git clone https://github.com/PDB-REDO/dssp.git | ||
cd dssp | ||
mkdir build | ||
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release | ||
cmake --build build | ||
cmake --install build | ||
conda install -c sbl dssp>=4.2.2.1 | ||
## MSMS | ||
cd /tmp/ | ||
wget http://mgltools.scripps.edu/downloads/tars/releases/MSMSRELEASE/REL2.6.1/msms_i86Linux2_2.6.1.tar.gz | ||
|
@@ -96,6 +82,14 @@ runs: | |
pip install torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-$(python3 -c "import torch; print(torch.__version__)")+cpu.html | ||
# PyTables via conda only for MacOS | ||
conda install pytables | ||
- name: Install the package | ||
- name: Install the GitHub repository version of the package | ||
shell: bash {0} | ||
if: ${{ inputs.pkg-installation-type == 'repository' }} | ||
run: pip install .'[${{ inputs.extras-require }}]' | ||
- name: Install the latest released version of the package | ||
shell: bash {0} | ||
if: ${{ inputs.pkg-installation-type == 'latest' }} | ||
run: | | ||
pip install pytest | ||
rm -r deeprank2 | ||
pip install deeprank2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: build (latest release) | ||
|
||
# Only trigger, when the release workflow succeeded | ||
on: | ||
workflow_run: | ||
workflows: ["Build and upload to PyPI"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
build: | ||
name: Build for (${{ matrix.python-version }}, ${{ matrix.os }}) | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ["ubuntu-latest"] | ||
python-version: ["3.10"] # ["3.10", "3.11"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/install-python-and-package | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
pkg-installation-type: "latest" | ||
- name: Run unit tests | ||
run: pytest -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,4 @@ jobs: | |
- name: Check whether the citation metadata from CITATION.cff is valid | ||
uses: citation-file-format/[email protected] | ||
with: | ||
args: "--validate" | ||
args: "--validate" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.