-
Notifications
You must be signed in to change notification settings - Fork 14
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 #314 from bcgsc/release/v3.0.0
Release/v3.0.0
- Loading branch information
Showing
245 changed files
with
36,460 additions
and
30,492 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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: quick-tests | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10"] | ||
name: python-${{ matrix.python-version }} quick | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
pip install .[test] | ||
- name: Lint with flake8 | ||
run: | | ||
pip install flake8 | ||
# stop the build if there are Python syntax errors or undefined names | ||
flake8 src/mavis --count --select=E9,F63,F7,F82 --show-source --statistics | ||
- name: Lint with black | ||
run: | | ||
pip install black | ||
# stop the build if black needs to be run | ||
black src/mavis -S -l 100 --check | ||
- name: install bwa | ||
run: | | ||
git clone https://github.com/lh3/bwa.git | ||
cd bwa | ||
git checkout v0.7.17 | ||
make | ||
cd .. | ||
- name: install blat | ||
run: | | ||
wget http://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64/blat/blat | ||
chmod a+x blat | ||
- name: run short tests with pytest | ||
run: | | ||
export PATH=$PATH:$(pwd):$(pwd)/bwa | ||
pytest tests -v \ | ||
--junitxml=junit/test-results-${{ matrix.python-version }}.xml \ | ||
--durations=10 | ||
env: | ||
RUN_FULL: 0 |
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 |
---|---|---|
|
@@ -20,4 +20,4 @@ python: | |
- method: pip | ||
path: . | ||
extra_requirements: | ||
- docs | ||
- doc |
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,55 @@ | ||
FROM python:3.7-slim-buster | ||
|
||
WORKDIR /app | ||
|
||
RUN apt-get update && \ | ||
apt-get upgrade -y && \ | ||
apt-get install -y git wget make gcc libz-dev | ||
|
||
# pysam dependencies | ||
RUN apt-get install -y libncurses5-dev zlib1g-dev libbz2-dev libncursesw5-dev liblzma-dev | ||
|
||
# install BWA | ||
RUN git clone https://github.com/lh3/bwa.git && \ | ||
cd bwa && \ | ||
git checkout v0.7.17 && \ | ||
make && \ | ||
cd .. && \ | ||
mv bwa/bwa /usr/local/bin | ||
|
||
# install minimap2 | ||
RUN git clone https://github.com/lh3/minimap2.git && \ | ||
cd minimap2 && \ | ||
git checkout v2.24 && \ | ||
make && \ | ||
cd .. && \ | ||
mv minimap2/minimap2.1 /usr/local/bin | ||
|
||
# install blat dependencies | ||
RUN apt-get install -y libcurl4 | ||
|
||
# install blat | ||
RUN wget http://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64/blat/blat && \ | ||
chmod a+x blat && \ | ||
mv blat /usr/local/bin | ||
|
||
# install wtdbg2 | ||
RUN git clone https://github.com/ruanjue/wtdbg2.git && \ | ||
cd wtdbg2 && \ | ||
make && \ | ||
cd .. && \ | ||
mv wtdbg2/wtdbg2 /usr/local/bin | ||
|
||
COPY setup.py setup.py | ||
COPY setup.cfg setup.cfg | ||
COPY MANIFEST.in MANIFEST.in | ||
COPY pyproject.toml pyproject.toml | ||
COPY src src | ||
COPY LICENSE LICENSE | ||
COPY README.md README.md | ||
|
||
# install python package | ||
RUN pip install -U setuptools pip wheel | ||
RUN pip install . | ||
RUN which mavis | ||
ENTRYPOINT [ "mavis" ] |
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,10 +1,6 @@ | ||
recursive-include docs * | ||
recursive-include tests *.py | ||
include tests/*/data/* | ||
recursive-include mavis *.py | ||
recursive-include tools *.pl *.py *.pm | ||
recursive-include tab *.py | ||
recursive-include src *.py *.json | ||
include src/mavis/py.typed | ||
include README.md | ||
include LICENSE | ||
prune docs/build | ||
prune docs/source/auto | ||
prune docs | ||
prune tests |
Oops, something went wrong.