-
Notifications
You must be signed in to change notification settings - Fork 0
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 #22 from instituteofcancerresearch/python-dev
Python dev
- Loading branch information
Showing
50 changed files
with
13,899 additions
and
687 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,62 +1,38 @@ | ||
name: SOPRANO (Dev) Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- python-dev | ||
pull_request: | ||
branches: | ||
- python-dev | ||
|
||
jobs: | ||
lint: | ||
strategy: | ||
matrix: | ||
os: ["ubuntu-latest"] | ||
python-version: ["3.11"] | ||
name: lint with python ${{ matrix.python-version }} on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install ruff and black | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install ruff black | ||
- name: Lint check with ruff | ||
run: | | ||
ruff --format=github --target-version=py311 --line-length 79 . | ||
- name: Style check with black | ||
run: | | ||
black ./ --check --line-length 79 | ||
test: | ||
strategy: | ||
matrix: | ||
os: ["ubuntu-latest"] | ||
python-version: ["3.11"] | ||
name: test with python ${{ matrix.python-version }} on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
name: Development tests | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: mamba-org/setup-micromamba@v1 | ||
- name: Setup miniconda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
environment-file: src/SOPRANO/local.yml | ||
init-shell: bash | ||
auto-update-conda: true | ||
miniforge-variant: Mambaforge | ||
channels: conda-forge | ||
python-version: 3.11 | ||
activate-environment: soprano-dev | ||
environment-file: src/SOPRANO/ci_linux.yml | ||
use-mamba: true | ||
- name: Install SOPRANO | ||
shell: bash -l {0} | ||
run: | | ||
micromamba activate soprano-dev | ||
conda activate soprano-dev | ||
pip install -e .[ci] | ||
- name: Test conda environment | ||
shell: bash -l {0} | ||
run: | | ||
micromamba activate soprano-dev | ||
pytest tests/test_configuration | ||
conda activate soprano-dev | ||
pytest -s tests/test_configuration | ||
- name: Test units | ||
shell: bash -l {0} | ||
run: | | ||
micromamba activate soprano-dev | ||
pytest tests/test_units | ||
conda activate soprano-dev | ||
pytest -s tests/test_units |
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,23 @@ | ||
name: Lint and style check | ||
|
||
on: [ push ] | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
- name: Install ruff and black | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install ruff black | ||
- name: Lint check with ruff | ||
run: | | ||
ruff --target-version=py311 --line-length 79 . | ||
- name: Style check with black | ||
run: | | ||
black ./ --check --line-length 79 |
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,69 +1,42 @@ | ||
name: SOPRANO (Main) Tests | ||
name: SOPRANO Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- python | ||
- master | ||
pull_request: | ||
branches: | ||
- python | ||
- master | ||
- main | ||
|
||
jobs: | ||
lint: | ||
strategy: | ||
matrix: | ||
os: ["ubuntu-latest"] | ||
python-version: ["3.11"] | ||
name: lint with python ${{ matrix.python-version }} on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install ruff and black | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install ruff black | ||
- name: Lint check with ruff | ||
run: | | ||
ruff --format=github --target-version=py311 --line-length 79 . | ||
- name: Style check with black | ||
run: | | ||
black ./ --check --line-length 79 | ||
test: | ||
strategy: | ||
matrix: | ||
os: ["ubuntu-latest", "macos-latest"] | ||
python-version: ["3.11"] | ||
name: test with python ${{ matrix.python-version }} on ${{ matrix.os }} | ||
os: [ "ubuntu-latest", "macos-latest" ] | ||
name: Development tests on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: mamba-org/setup-micromamba@v1 | ||
- name: Setup miniconda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
environment-file: src/SOPRANO/local.yml | ||
init-shell: bash | ||
auto-update-conda: true | ||
miniforge-variant: Mambaforge | ||
channels: conda-forge | ||
python-version: 3.11 | ||
activate-environment: soprano-dev | ||
environment-file: src/SOPRANO/ci_osx.yml # additional coreutils | ||
use-mamba: true | ||
- name: Install SOPRANO | ||
shell: bash -l {0} | ||
run: | | ||
micromamba activate soprano-dev | ||
conda activate soprano-dev | ||
pip install -e .[ci] | ||
- name: Test conda environment | ||
shell: bash -l {0} | ||
run: | | ||
micromamba activate soprano-dev | ||
pytest tests/test_configuration | ||
conda activate soprano-dev | ||
pytest -s tests/test_configuration | ||
- name: Test units | ||
shell: bash -l {0} | ||
run: | | ||
micromamba activate soprano-dev | ||
pytest tests/test_units | ||
# - name: Test integration # TODO: Need to think about this | ||
# shell: bash -l {0} | ||
# run: | | ||
# micromamba activate soprano-dev | ||
# pytest tests/test_integrations | ||
conda activate soprano-dev | ||
pytest -s tests/test_units |
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
Empty file.
Empty file.
Empty file.
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 |
---|---|---|
|
@@ -8,26 +8,30 @@ description = "SOPRANO: Selection On PRotein ANnotated regiOns" | |
readme = "README.md" | ||
authors = [ | ||
{ name = "Luis Zapata", email = "[email protected]" }, | ||
{ name = "ICR Scientific Software Group", email = "[email protected]"}, | ||
{ name = "ICR Scientific Software Group", email = "[email protected]" }, | ||
] | ||
maintainers = [ | ||
{ name = "Luis Zapata", email = "[email protected]" }, | ||
{ name = "ICR Scientific Software Group", email = "[email protected]"}, | ||
{ name = "ICR Scientific Software Group", email = "[email protected]" }, | ||
] | ||
requires-python = ">=3.8" | ||
requires-python = ">=3.10" | ||
dependencies = [ | ||
"pandas", | ||
"numpy", | ||
"streamlit == 1.27.0" | ||
"streamlit == 1.27.0", | ||
"requests", | ||
"types-requests", | ||
"clint" | ||
] | ||
classifiers = [ | ||
"Development Status :: 3 - Alpha", | ||
"License :: OSI Approved :: BSD License", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Perl", | ||
"Topic :: Scientific/Engineering :: Bio-Informatics", | ||
"Intended Audience :: Science/Research" | ||
"Development Status :: 3 - Alpha", | ||
"License :: OSI Approved :: BSD License", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Perl", | ||
"Topic :: Scientific/Engineering :: Bio-Informatics", | ||
"Intended Audience :: Science/Research" | ||
] | ||
dynamic = ["version"] | ||
|
||
|
@@ -59,6 +63,7 @@ soprano-run = "SOPRANO.run:run_cli" | |
soprano-app = "SOPRANO.run:run_app" | ||
soprano-get-genome = "SOPRANO.run:download_genome" | ||
soprano-link-vep = "SOPRANO.run:link_vep_cache" | ||
soprano-hla2ip = "SOPRANO.run:hla2pip" | ||
|
||
[tool.hatch] | ||
version.source = "vcs" | ||
|
Oops, something went wrong.