-
Notifications
You must be signed in to change notification settings - Fork 4
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 #9 from joachimwolff/dev
Dev
- Loading branch information
Showing
19 changed files
with
689 additions
and
495 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,81 @@ | ||
# Python package | ||
# Create and test a Python package on multiple Python versions. | ||
# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more: | ||
# https://docs.microsoft.com/azure/devops/pipelines/languages/python | ||
pr: | ||
autoCancel: true | ||
jobs: | ||
|
||
trigger: | ||
- master | ||
- job: 'Linux' | ||
timeoutInMinutes: 0 | ||
pool: | ||
vmImage: 'ubuntu-latest' | ||
strategy: | ||
matrix: | ||
Python36: | ||
python.version: '3.6' | ||
Python37: | ||
python.version: '3.7' | ||
Python38: | ||
python.version: '3.8' | ||
|
||
pool: | ||
vmImage: 'ubuntu-latest' | ||
strategy: | ||
matrix: | ||
Python27: | ||
python.version: '2.7' | ||
Python35: | ||
python.version: '3.5' | ||
Python36: | ||
python.version: '3.6' | ||
Python37: | ||
python.version: '3.7' | ||
steps: | ||
- bash: | | ||
echo "##vso[task.prependpath]$CONDA/bin" | ||
hash -r | ||
displayName: Add conda to PATH | ||
- bash: | | ||
conda config --set always_yes yes --set changeps1 no | ||
conda info -a | ||
conda create -n sparse-neighbors-search --yes -c conda-forge -c bioconda python=$(python.version) --file requirements_linux.txt | ||
source activate sparse-neighbors-search | ||
conda install --yes -c conda-forge -c bioconda pytest flake8 pytest-xdist pytest-forked | ||
conda install --yes -c conda-forge -c bioconda nose | ||
conda install --yes pathlib | ||
conda install --yes -c defaults -c conda-forge -c bioconda configparser | ||
python setup.py install | ||
displayName: installing dependencies | ||
- script: | | ||
source activate sparse-neighbors-search | ||
flake8 sparse_neighbors_search/cluster --exclude=.venv,.build,planemo_test_env,build --ignore=E501,F401,F403,E402,F999,F405,E712,W504 | ||
flake8 sparse_neighbors_search/neighbors --exclude=.venv,.build,planemo_test_env,build --ignore=E501,F401,F403,E402,F999,F405,E712,W504 | ||
displayName: linting | ||
- script: | | ||
source activate sparse-neighbors-search | ||
py.test sparse_neighbors_search/test/ | ||
displayName: pytest | ||
- job: 'OSX' | ||
timeoutInMinutes: 0 | ||
pool: | ||
vmImage: 'macOS-10.14' | ||
strategy: | ||
matrix: | ||
Python36: | ||
python.version: '3.6' | ||
Python37: | ||
python.version: '3.7' | ||
Python38: | ||
python.version: '3.8' | ||
|
||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '$(python.version)' | ||
displayName: 'Use Python $(python.version)' | ||
|
||
- script: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
displayName: 'Install dependencies' | ||
|
||
- script: | | ||
pip install pytest pytest-azurepipelines | ||
pytest | ||
displayName: 'pytest' | ||
steps: | ||
- bash: | | ||
echo "##vso[task.prependpath]$CONDA/bin" | ||
hash -r | ||
displayName: Add conda to PATH | ||
- bash: | | ||
conda config --set always_yes yes --set changeps1 no | ||
conda info -a | ||
conda create -n sparse-neighbors-search --yes -c conda-forge -c bioconda python=$(python.version) --file requirements_macos.txt | ||
source activate sparse-neighbors-search | ||
conda install --yes -c conda-forge -c bioconda pytest flake8 pytest-xdist pytest-forked | ||
conda install --yes -c conda-forge -c bioconda nose | ||
conda install --yes pathlib | ||
conda install --yes -c defaults -c conda-forge -c bioconda configparser | ||
python setup.py install | ||
displayName: installing dependencies | ||
- script: | | ||
source activate sparse-neighbors-search | ||
flake8 sparse_neighbors_search/cluster --exclude=.venv,.build,planemo_test_env,build --ignore=E501,F401,F403,E402,F999,F405,E712,W504 | ||
flake8 sparse_neighbors_search/neighbors --exclude=.venv,.build,planemo_test_env,build --ignore=E501,F401,F403,E402,F999,F405,E712,W504 | ||
displayName: linting | ||
- script: | | ||
source activate sparse-neighbors-search | ||
py.test sparse_neighbors_search/test/ | ||
displayName: pytest |
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,5 +3,6 @@ cython | |
numpy >=1.17 | ||
scipy >=1.3 | ||
scikit-learn >=0.21 | ||
gxx_linux-64 | ||
# gxx_linux-64 | ||
clangxx_osx-64 | ||
openmp |
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,8 @@ | ||
python >=3.6 | ||
cython | ||
numpy >=1.17 | ||
scipy >=1.3 | ||
scikit-learn >=0.21 | ||
gxx_linux-64 | ||
openmp | ||
umap-learn |
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,8 @@ | ||
python >=3.6 | ||
cython | ||
numpy >=1.17 | ||
scipy >=1.3 | ||
scikit-learn >=0.21 | ||
clangxx_osx-64 | ||
openmp | ||
umap-learn |
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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
from .minHashSpectralClustering import MinHashSpectralClustering | ||
from .minHashDBSCAN import MinHashDBSCAN | ||
from .minHashClustering import MinHashClustering | ||
from .minHashClustering import MinHashClustering | ||
|
||
import logging | ||
# logging.basicConfig(level=logging.DEBUG) | ||
logging.basicConfig(level=logging.INFO) | ||
logging.getLogger('numba').setLevel(logging.ERROR) |
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.