-
Notifications
You must be signed in to change notification settings - Fork 14
109 lines (104 loc) · 3.44 KB
/
ci-container.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# Lingfei Wang, 2022, 2023. All rights reserved.
name: "Container image"
on:
push:
branches:
- master
- dev
paths:
- 'setup.py'
- 'src/**'
- 'bin/**'
- 'utils/docker/**'
- 'doc/scripts/install.sh'
- '.github/workflows/ci-container.yml'
- '.github/actions/dockerhub-build-publish/**'
jobs:
build-cpu:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: local
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and publish pretest version
uses: ./local/.github/actions/dockerhub-build-publish
id: publish-pretest
with:
registry: lfwa
image: dictys-cpu-dev
test-blood1-cpu:
name: Blood static network unit tests
needs: build-cpu
runs-on: ubuntu-latest
container:
image: lfwa/dictys-cpu-dev
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Get dataset URL
id: zenodo-url-translate
uses: ./.github/actions/zenodo-url-translate
with:
url: https://zenodo.org/record/6858494/files/inference-blood1.tar.xz?download=1
- name: Test dataset
uses: ./.github/actions/inference-test-dataset
with:
url: ${{ steps.zenodo-url-translate.outputs.url }}
test-path: ci_testspace
makefile: test_static.mk
expected-folder: test/tmp_static_expected
actual-folder: test/tmp_static
expected-h5: test/output/static_expected.h5
actual-h5: test/output/static.h5
makefile-params: '{"ENVMODE": "none", "NTH": "2", "DEVICE": "cpu", "GENOME_MACS2": "hs", "JOINT": "0", "KPARAMS-NETWORK-RECONSTRUCT+": " --nstep 10 --nstep_report 3"}'
exclusions: 'reads.bam reads.bai net_weight.tsv.gz net_covfactor.tsv.gz net_meanvar.tsv.gz net_loss.tsv.gz net_stats.tsv.gz'
build-publish-cpu:
needs: test-blood1-cpu
if: ( github.ref_name == 'master' ) && ( github.repository == 'pinellolab/dictys' )
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: local
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and publish
uses: ./local/.github/actions/dockerhub-build-publish
id: publish
with:
registry: lfwa
image: dictys-cpu
build-publish-cuda:
needs: test-blood1-cpu
if: false && ( github.ref_name == 'master' ) && ( github.repository == 'pinellolab/dictys' )
runs-on: ubuntu-latest
strategy:
matrix:
cuda: [11.3,11.6,11.7]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: local
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and publish
uses: ./local/.github/actions/dockerhub-build-publish
id: publish
with:
registry: lfwa
cuda: ${{ matrix.cuda }}
image: dictys-cuda{{ matrix.cuda }}