Skip to content

Commit

Permalink
feat: use new workflow data validation
Browse files Browse the repository at this point in the history
* Use `virtool-workflow^5.0.0`.
* Remove unused docker configuration files.
* Adds data validation to workflow runner.

BREAKING CHANGE: Requires Virtool API version 13.0.0 or higher.
  • Loading branch information
igboyes authored Nov 30, 2022
1 parent 747b87f commit 9b0de1b
Show file tree
Hide file tree
Showing 7 changed files with 377 additions and 173 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Run Tests Using Docker Compose
run: |
cd tests
docker-compose up --build --exit-code-from build-index-tests
- name: Test
run: docker build --target test .
release:
runs-on: ubuntu-20.04
needs: test
Expand Down
13 changes: 9 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
FROM virtool/workflow:4.0.2

FROM virtool/workflow:5.2.1 as base
WORKDIR /workflow
COPY workflow.py utils.py /workflow/

COPY workflow.py /workflow/workflow.py
COPY utils.py /workflow/utils.py
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"]
Loading

0 comments on commit 9b0de1b

Please sign in to comment.