-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
1,037 additions
and
863 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 |
---|---|---|
|
@@ -10,28 +10,28 @@ on: | |
|
||
jobs: | ||
commitlint: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
if: github.event_name == 'pull_request' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: wagoid/commitlint-github-action@v4 | ||
test: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Test | ||
run: docker build --target test . | ||
release: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
needs: test | ||
if: github.event_name == 'push' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
node-version: 18 | ||
- name: Install semantic-release | ||
run: npm i [email protected] [email protected] | ||
- name: Release | ||
|
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,11 +1,27 @@ | ||
FROM virtool/workflow:5.3.0 as base | ||
FROM debian:buster as prep | ||
WORKDIR /build | ||
RUN apt-get update && apt-get install -y make gcc zlib1g-dev wget unzip | ||
RUN wget https://zlib.net/pigz/pigz-2.8.tar.gz && \ | ||
tar -xzvf pigz-2.8.tar.gz && \ | ||
cd pigz-2.8 && \ | ||
make | ||
RUN wget https://github.com/BenLangmead/bowtie2/releases/download/v2.3.2/bowtie2-2.3.2-legacy-linux-x86_64.zip && \ | ||
unzip bowtie2-2.3.2-legacy-linux-x86_64.zip && \ | ||
mkdir bowtie2 && \ | ||
cp bowtie2-2.3.2-legacy/bowtie2* bowtie2 | ||
|
||
FROM python:3.10-buster as base | ||
WORKDIR /workflow | ||
COPY workflow.py utils.py /workflow/ | ||
COPY --from=prep /build/bowtie2/* /usr/local/bin/ | ||
COPY --from=prep /build/pigz-2.8/pigz /usr/local/bin/pigz | ||
COPY pyproject.toml poetry.lock utils.py workflow.py ./ | ||
RUN curl -sSL https://install.python-poetry.org | python - | ||
ENV PATH="/root/.local/bin:${PATH}" | ||
RUN poetry export > requirements.txt | ||
RUN pip install -r requirements.txt | ||
|
||
FROM base as test | ||
WORKDIR /test | ||
RUN curl -sSL https://install.python-poetry.org | python3 - | ||
COPY ./pyproject.toml ./poetry.lock ./ | ||
RUN poetry install | ||
COPY . . | ||
RUN ["poetry", "run", "pytest"] | ||
RUN poetry export --with dev > requirements.txt | ||
RUN pip install -r requirements.txt | ||
COPY tests ./tests | ||
RUN pytest |
Large diffs are not rendered by default.
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
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