-
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 #597 from DeepRank/595_release_302_gcroci2
release: 3.0.2 patch
- Loading branch information
Showing
40 changed files
with
1,176 additions
and
1,041 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,70 +26,43 @@ runs: | |
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- uses: actions/checkout@v3 | ||
- name: Setup conda | ||
uses: s-weigand/setup-conda@v1 | ||
|
||
- name: Setup miniconda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
update-conda: true | ||
auto-update-conda: true | ||
miniforge-variant: Mambaforge | ||
channels: conda-forge | ||
python-version: ${{ inputs.python-version }} | ||
conda-channels: pytorch, pyg, bioconda, defaults, sbl, conda-forge | ||
activate-environment: deeprank2 | ||
environment-file: env/deeprank2.yml | ||
use-mamba: true | ||
|
||
- run: | | ||
conda --version | ||
conda env list | ||
shell: bash {0} | ||
shell: bash -l {0} | ||
- name: Python info | ||
shell: bash -e {0} | ||
shell: bash -l {0} | ||
run: | | ||
which python3 | ||
python3 --version | ||
- name: Install dependencies on Linux | ||
shell: bash {0} | ||
env: | ||
CMAKE_INSTALL_PREFIX: .local | ||
if: runner.os == 'Linux' | ||
run: | | ||
# Install deeprank2 conda dependencies | ||
## DSSP | ||
conda install -c sbl dssp>=4.2.2.1 | ||
## MSMS | ||
conda install -c bioconda msms>=2.6.1 | ||
## PyTorch, PyG, PyG adds | ||
### Installing for CPU only on the CI | ||
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 | ||
## DSSP | ||
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 | ||
sudo mkdir /usr/local/lib/msms | ||
cd /usr/local/lib/msms | ||
sudo tar zxvf /tmp/msms_i86Linux2_2.6.1.tar.gz | ||
sudo ln -s /usr/local/lib/msms/msms.i86Linux2.2.6.1 /usr/local/bin/msms | ||
sudo ln -s /usr/local/lib/msms/pdb_to_xyzr* /usr/local/bin | ||
## PyTorch, PyG, PyG adds | ||
### Installing for CPU only on the CI | ||
conda install pytorch torchvision torchaudio cpuonly -c pytorch | ||
pip install torch_geometric | ||
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 GitHub repository version of the package | ||
shell: bash {0} | ||
shell: bash -l {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} | ||
run: | | ||
conda activate deeprank2 | ||
pip install .'[${{ inputs.extras-require }}]' | ||
- name: Install the latest released PyPI version of the package | ||
shell: bash -l {0} | ||
if: ${{ inputs.pkg-installation-type == 'latest' }} | ||
run: | | ||
conda activate deeprank2 | ||
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
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: notebooks | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
# specific folder locations | ||
- ".vscode/**" | ||
- "docs/**" | ||
# filetypes | ||
- "**.md" | ||
- "**.rst" | ||
- "**.cff" | ||
- "**.png" | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
paths-ignore: | ||
# specific folder locations | ||
- ".vscode/**" | ||
- "docs/**" | ||
# filetypes | ||
- "**.md" | ||
- "**.rst" | ||
- "**.cff" | ||
- "**.png" | ||
|
||
jobs: | ||
build: | ||
if: github.event.pull_request.draft == false | ||
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"] | ||
|
||
# https://github.com/marketplace/actions/setup-miniconda#use-a-default-shell | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: ./.github/actions/install-python-and-package | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
extras-require: test, notebooks | ||
pkg-installation-type: "repository" | ||
|
||
- name: Download the data for the tutorials | ||
shell: bash -l {0} | ||
run: | | ||
wget https://zenodo.org/records/8349335/files/data_raw.zip | ||
unzip data_raw.zip -d data_raw | ||
mv data_raw tutorials | ||
- name: Run tutorial notebooks | ||
run: pytest --nbmake tutorials |
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
Oops, something went wrong.