|
39 | 39 | if '-q' in sys.argv: |
40 | 40 | ignores.append('pospischiletal2008') # Slow... |
41 | 41 | ignores.append('blue-brain-project-showcase') # Slow... |
42 | | - ignores.append('acnet2') # Slow... |
| 42 | + #ignores.append('acnet2') # Slow... |
43 | 43 | ignores.append('granulecell') # Slow... |
44 | 44 | ignores.append('thalamocortical') # Slow... |
45 | 45 | ignores.append('cerebellum--cerebellar-golgi-cell--solinasetal-golgicell') # Slow... |
46 | 46 | ignores.append('potjansdiesmann2014') |
47 | 47 | ignores.append('nc_ca1') |
48 | | - ignores.append('miglioreetal14_olfactorybulb3d') |
| 48 | + #ignores.append('miglioreetal14_olfactorybulb3d') |
49 | 49 | ignores.append('sadehetal2017-inhibitionstabilizednetworks') |
50 | | - ignores.append('brianshowcase') # Slow... |
| 50 | + #ignores.append('brianshowcase') # Slow... |
51 | 51 |
|
52 | 52 | ignores.append('c302') # problem downloading images?... |
53 | 53 | ignores.append('celegans') # ditto.. |
|
84 | 84 | if __name__ == "__main__": |
85 | 85 | start = datetime.datetime.now() |
86 | 86 |
|
87 | | - project_num = 1000 |
88 | | - if len(sys.argv) == 2: |
89 | | - try: |
90 | | - project_num = int(sys.argv[1]) |
91 | | - except: |
92 | | - print("ignoring...") |
| 87 | + project_num = 30000 |
93 | 88 |
|
94 | 89 | all_projs = osb.get_projects(min_curation_level="None", |
95 | 90 | limit=project_num) |
|
122 | 117 | print(" Possible .travis.yml with OMV tests found!") |
123 | 118 | all_repos[project.identifier] = project.github_repo |
124 | 119 |
|
| 120 | + elif github_repo.check_file_in_repository(".github/workflows/omv-ci.yml"): |
| 121 | + |
| 122 | + raw_url = github_repo.link_to_raw_file_in_repo(".github/workflows/omv-ci.yml") |
| 123 | + print(" .github/workflows/omv-ci.yml found at %s\n" % raw_url) |
| 124 | + #contents = osb.utils.get_page(raw_url) |
| 125 | + |
| 126 | + print(" omv-ci.yml with OMV tests found!") |
| 127 | + all_repos[project.identifier] = project.github_repo |
| 128 | + |
125 | 129 | else: |
126 | | - error = " (No .travis.yml)" |
| 130 | + error = " (No .travis.yml or omv-ci.yml...)" |
127 | 131 | print(error) |
128 | 132 |
|
129 | 133 | bad_projects_found[project.identifier] = error |
| 134 | + |
130 | 135 | except Exception as e: |
131 | 136 | error = " (Error accessing GitHub repository)" |
132 | 137 | print(e) |
133 | 138 | bad_projects_found[project.identifier] = error |
134 | 139 |
|
135 | | - else: |
136 | | - error = " (No GitHub repository)" |
137 | | - print(error) |
138 | | - bad_projects_found[project.identifier] = error |
| 140 | + #else: |
| 141 | + #error = " (No GitHub repository)" |
| 142 | + #print(error) |
| 143 | + #bad_projects_found[project.identifier] = error |
139 | 144 | else: |
140 | 145 | error = " (Ignoring...)" |
141 | 146 | print(error) |
|
173 | 178 | testable_projects += 1 |
174 | 179 | test_it = True |
175 | 180 |
|
| 181 | + elif github_repo.check_file_in_repository(".github/workflows/omv-ci.yml"): |
| 182 | + testable_projects += 1 |
| 183 | + test_it = True |
| 184 | + |
176 | 185 | else: |
177 | 186 | print(" (No .travis.yml)") |
178 | 187 |
|
|
0 commit comments