generated from jacobtomlinson/python-container-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
73 lines (51 loc) · 1.52 KB
/
main.py
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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu May 28 15:09:37 2020
@author: stearb
"""
# read biopypir_log
# get name date, run id, and info
# and check if anything is different, only change 'last checked' if everything same
import os
import time
import json
import pandas as pd
import tabulate as tb
import glob
import numpy as np
local_path= '/Users/stearb/desktop/temp_biop/logs/*.json'
logs_path = "logs/*.json"
all_logs = glob.glob(logs_path)
#all_logs = glob.glob(local_path)
print('Total Logs found: '+str(len(all_logs)))
new = 1
if new:
for i in range(0,1): #len(all_logs)):
with open(all_logs[i]) as f:
data = json.load(f)
#log1 = json.loads(data)
#def create_table(log_path_list):
df = pd.DataFrame([data['Package'],'Gold','TaylorLab'])#,columns=['Package','Badge'])
df.to_csv('table1.csv',sep='\t')
x = 123456
print("::set-output name=table_output::{x}")
print(os.system('ls -a'))
print("www.github.com/benstear")
print("here from gh action)
'''
def main():
repo_name = os.environ["INPUT_MYREPO"]
python_version = os.environ["INPUT_PYTHON_VERSION"]
os = os.environ["INPUT_OS"]
lint = os.environ["INPUT_LINT"]
package_name = os.environ["INPUT_PACKAGE_NAME"]
print(os.system('echo $PWD'))
print(os.system('ls -a'))
#my_output = str(my_input)
#print(f"::set-output name=myOUTPUT::{my_output}")
print(f"www.github.com/{my_input}")
if __name__ == "__main__":
main()
print("www.github.com/benstear")
'''