-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update to v0.3.0 (#237)
- Loading branch information
Showing
98 changed files
with
15,923 additions
and
4,290 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
**/.git | ||
.github | ||
examples | ||
docs | ||
wdl | ||
dist | ||
cellbender.egg-info | ||
.pytest_cache | ||
*.h5 | ||
*.tar.gz |
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,6 @@ | ||
version: 1.2 | ||
|
||
workflows: | ||
- subclass: WDL | ||
primaryDescriptorPath: /wdl/cellbender_remove_background.wdl | ||
name: cellbender_remove_background |
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,17 @@ | ||
name: 'validate WDL' | ||
on: [pull_request] | ||
env: | ||
MINIWDL_VERSION: 1.8.0 | ||
jobs: | ||
miniwdl-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.7' | ||
- name: 'Install miniwdl and Run Validation Test' | ||
run: | | ||
pip install miniwdl==$MINIWDL_VERSION; | ||
./cellbender/remove_background/tests/miniwdl_check_wdl.sh; | ||
shell: bash |
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,45 @@ | ||
# Package for PyPI | ||
|
||
name: 'packaging' | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: 'ubuntu-latest' | ||
strategy: | ||
matrix: | ||
python-version: ['3.7'] | ||
|
||
steps: | ||
- name: 'Checkout repo' | ||
uses: actions/checkout@v3 | ||
|
||
- name: 'Set up Python ${{ matrix.python-version }}' | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: 'pip' | ||
|
||
- name: 'Install packaging software' | ||
run: pip install --upgrade setuptools build twine | ||
|
||
- name: 'Print package versions' | ||
run: pip list | ||
|
||
- name: 'Package code using build' | ||
run: python -m build | ||
|
||
- name: 'Check package using twine' | ||
run: python -m twine check dist/* | ||
|
||
- name: 'Extract branch name' | ||
shell: bash | ||
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >>$GITHUB_OUTPUT | ||
id: extract_branch | ||
|
||
- name: 'Install from github branch and run a test' | ||
run: | | ||
pip install pytest git+https://github.com/broadinstitute/CellBender@${{ steps.extract_branch.outputs.branch }} | ||
cellbender -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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Run cellbender's tests | ||
|
||
name: 'pytest' | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: 'ubuntu-latest' | ||
strategy: | ||
matrix: | ||
python-version: ['3.7'] | ||
|
||
steps: | ||
- name: 'Checkout repo' | ||
uses: actions/checkout@v3 | ||
|
||
- name: 'Set up Python ${{ matrix.python-version }}' | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: 'pip' | ||
|
||
- name: 'Install package including pytest' | ||
run: pip install .[dev] | ||
|
||
- name: 'Print package versions' | ||
run: pip list | ||
|
||
- name: 'Test with pytest' | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,9 @@ dist/ | |
.eggs/ | ||
.idea/ | ||
*.iml | ||
*.h5 | ||
*.h5ad | ||
*.tsv | ||
*.csv | ||
*.npz | ||
*.tar.gz |
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 +1,4 @@ | ||
include README.rst | ||
include README.rst | ||
include LICENSE | ||
include requirements.txt | ||
include requirements-rtd.txt |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
tag=$(cat cellbender/__init__.py | sed -e 's?__version__ = ??' | sed "s/^'\(.*\)'$/\1/") | ||
|
||
docker build \ | ||
-t us.gcr.io/broad-dsde-methods/cellbender:${tag} \ | ||
-f docker/Dockerfile \ | ||
. |
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,10 @@ | ||
#!/bin/bash | ||
|
||
tag=$(cat cellbender/__init__.py | sed -e 's?__version__ = ??' | sed "s/^'\(.*\)'$/\1/") | ||
release=v${tag} | ||
|
||
docker build \ | ||
-t us.gcr.io/broad-dsde-methods/cellbender:${tag} \ | ||
--build-arg GIT_SHA=${release} \ | ||
-f docker/DockerfileGit \ | ||
. |
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 @@ | ||
__version__ = '0.3.0' |
Oops, something went wrong.