-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (55 loc) · 1.97 KB
/
Copy pathci.yml
File metadata and controls
58 lines (55 loc) · 1.97 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
56
57
58
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 # https://github.com/actions/checkout.
with:
submodules: recursive
- name: Install miniconda.
uses: conda-incubator/setup-miniconda@v2.0.1 # https://github.com/conda-incubator/setup-miniconda.
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:
- paired.end.fasta
- paired.end.fastq
- single.end.fasta
- single.end.fastq
steps:
- uses: actions/checkout@v2.3.4 # https://github.com/actions/checkout.
with:
submodules: recursive
- name: Install miniconda.
uses: conda-incubator/setup-miniconda@v2.0.1 # https://github.com/conda-incubator/setup-miniconda.
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'