-
Notifications
You must be signed in to change notification settings - Fork 1
121 lines (115 loc) · 3.48 KB
/
database-update.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
110
111
112
113
114
115
116
117
118
119
120
name: Build-database
on:
push:
branches:
- '**'
paths:
- ./data/
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
# Placeholder
# build-bmd:
# #if: github.actor != 'github-actions[bot]'
# runs-on: ubuntu-20.04
# environment: build
# steps:
# - name: Checkout Repo
# uses: actions/checkout@v3
# - name: Download artifacts from previous drug gen
# uses: actions/download-artifact@v3
# - name: Pull sample image
# run: docker pull sgosline/srp-bmd
# - name: Run bmd python command
# run: |
# docker run -v $PWD:/tmp sgosline/srp-bmd
# - name: List files cwd
# run: ls -la
build-samples:
#if: github.actor != 'github-actions[bot]'
runs-on: ubuntu-20.04
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Download artifacts from previous drug gen
uses: actions/download-artifact@v3
- name: Pull sample image
run: docker pull sgosline/srp-samplechem
- name: Run sample-chem python command
run: |
docker run -v $PWD:/tmp sgosline/srp-samplechem
- name: List files cwd
run: ls -la
- name: list files tmp
run: ls -la /tmp
build-expo:
#if: github.actor != 'github-actions[bot]'
runs-on: ubuntu-20.04
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Download artifacts from previous drug gen
uses: actions/download-artifact@v3
- name: Pull sample image
run: docker pull sgosline/srp-exposome
- name: Run sample-chem python command
run: |
docker run -v $PWD:/tmp sgosline/srp-exposome
- name: List files cwd
run: ls -la
- name: list files tmp
run: ls -la /tmp
- name: Copy files to artifact
run: |
mkdir expo-files
mv *.csv expo-files
- name: upload artifact
uses: actions/upload-artifact@v2
with:
name: expo-files
path: expo-files
build-expr:
#if: github.actor != 'github-actions[bot]'
runs-on: ubuntu-20.04
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Download artifacts from previous drug gen
uses: actions/download-artifact@v3
- name: Pull sample image
run: docker pull sgosline/srp-zfexp
- name: Run zfexp python command
run: |
docker run -v $PWD:/tmp sgosline/srp-zfexp
- name: List files cwd
run: ls -la
- name: list files tmp
run: ls -la /tmp
- name: Copy files to artifact
run: |
mkdir expr--files
mv *csv expr-files
- name: upload artifact
uses: actions/upload-artifact@v2
with:
name: expr-files
path: expr-files
artifact-test:
needs: [build-samples,build-expo,build-expr]
runs-on: ubuntu-20.04
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Download artifacts from expression
uses: actions/download-artifact@v2
with:
name: expr-files
- name: Downlod artifacts from exposome
uses: actions/download-artifacts@v2
with:
name: expo-files
- name: List files cwd
run: ls -la
- name: list files tmp
run: ls -la /tmp
#zipfiles push to figshare