forked from biowdl/structural-variantcalling
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (52 loc) · 1.71 KB
/
Copy pathci.yml
File metadata and controls
55 lines (52 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Continuous integration
on:
pull_request:
paths:
- "**.wdl" # Workflow files and task
- "**.yml" # Ci configuration, tests and docker images
- "!docs/**"
defaults:
run:
# This is needed for miniconda, see:
# https://github.com/marketplace/actions/setup-miniconda#important
shell: bash -l {0}
jobs:
lint:
runs-on: ubuntu-latest
name: Womtool validate and submodule up to date.
steps:
- uses: actions/checkout@v2.3.4
with:
submodules: recursive
- name: install miniconda
uses: conda-incubator/setup-miniconda@v2.0.1
with:
channels: conda-forge,bioconda,defaults
# Conda-incubator uses 'test' environment by default.
- name: install requirements
run: conda install -n test cromwell miniwdl wdl-aid
- name: run linting
run: bash scripts/biowdl_lint.sh
test:
needs: lint # Don't start testing before the lint has succeeded.
runs-on: ubuntu-latest
strategy:
matrix:
test:
- structural-variantcalling
steps:
- uses: actions/checkout@v2.3.4
with:
submodules: recursive
- name: install miniconda
uses: conda-incubator/setup-miniconda@v2.0.1
with:
channels: conda-forge,bioconda,defaults
- name: install requirements
run: conda install -n test --file requirements-test.txt
- name: Run test
run: pytest --keep-workflow-wd-on-fail --tag ${{ matrix.test }} tests/
- name: Check logs in case of failure
if: ${{ failure() }}
# Get the last 1000 lines of the cromwell log to catch the error.
run: bash -c 'tail -n 1000 /tmp/pytest_workflow_*/*/log.out'