forked from koksal/tps
-
Notifications
You must be signed in to change notification settings - Fork 3
85 lines (85 loc) · 2.61 KB
/
test.yml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Test TPS
on:
- push
- pull_request
jobs:
pcsf:
name: Test PCSF
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install conda environment
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: pcsf
environment-file: pcsf/environment.yml
auto-activate-base: false
auto-update-conda: false
miniconda-version: 'latest'
# Log conda environment contents
- name: Log conda environment
shell: bash --login {0}
run: conda list
# Run the PCSF tests in the pcsf conda environment
- name: Test PCSF
shell: bash --login {0}
run: pytest pcsf/tests/
docker:
name: Build Docker images
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: checkout repository
uses: actions/checkout@v2
- name: Build TPS Docker image
uses: docker/build-push-action@v1
with:
path: .
dockerfile: containers/tps/Dockerfile
repository: ajshedivy/tps
tags: latest
cache_froms: ajshedivy/tps:latest
push: false
- name: Build Cytoscape Docker image
uses: docker/build-push-action@v1
with:
path: .
dockerfile: containers/cytoscape/Dockerfile
repository: ajshedivy/cytoscape
tags: latest
cache_froms: ajshedivy/cytoscape:latest
push: false
workflow:
name: Test TPS workflow
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install conda environment
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: tps_workflow
environment-file: workflow/minimal_env.yml
auto-activate-base: false
miniconda-version: 'latest'
# Log conda environment contents
- name: Log conda environment
shell: bash --login {0}
run: conda list
# Run the workflow tests
- name: Test workflow with pytest
shell: bash --login {0}
# Verbose output and disable stdout and stderr capturing
run: pytest -vs workflow/tests/
- name: Test workflow with script
shell: bash --login {0}
run: bash workflow.sh --config workflow/config/default_config.yaml --execute all