-
Notifications
You must be signed in to change notification settings - Fork 1
146 lines (139 loc) · 4.31 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
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@v4
# - 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@v4
- 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: move files
run: |
mkdir samp-files
mv *csv samp-files
- name: upload artifacts
uses: actions/upload-artifact@v4
with:
name: samp-files
path: samp-files
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@v4
- 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: Copy files to artifact
run: |
mkdir expo-files
mv *.csv expo-files
- name: upload artifact
uses: actions/upload-artifact@v4
with:
name: expo-files
path: expo-files
build-expr:
#if: github.actor != 'github-actions[bot]'
runs-on: ubuntu-20.04
needs: build-samples
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Download artifacts from sample generation
uses: actions/download-artifact@v4
with:
name: samp-files
path: samp-files
- name: Pull sample image
run: docker pull sgosline/srp-zfexp
- name: move chemical list to tmp
run: mv samp-files/chemicals.csv .
- name: Run zfexp python command
run: |
docker run -v $PWD:/tmp sgosline/srp-zfexp
- name: List files cwd
run: ls -la
- name: Copy files to artifact
run: |
mkdir expr-files
mv *csv expr-files
- name: upload artifact
uses: actions/upload-artifact@v4
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@v4
with:
name: expr-files
- name: Downlod artifacts from exposome
uses: actions/download-artifact@v4
with:
name: expo-files
- name: Downlod artifacts from samples
uses: actions/download-artifact@v4
with:
name: samp-files
- name: List files cwd
run: ls -la *
- name: Moves files to single directory
run: |
mkdir srpAnalytics
mv *csv srpAnalytics
#gzip -cvf srpAnalytics/* srpAnalytics.gz
- name: Pushes to figshare
uses: figshare/[email protected]
with:
FIGSHARE_TOKEN: ${{ secrets.FIGSHARE_TOKEN }}
FIGSHARE_ENDPOINT: 'https://api.figshare.com/v2'
FIGSHARE_ARTICLE_ID: 26240471
# FIGSHARE_PROJECT_ID: 177459
DATA_DIR: 'srpAnalytics'
#zipfiles push to figshare