Skip to content

Commit fe90c42

Browse files
authored
Remove a "dangerous test"
1 parent 56906b0 commit fe90c42

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

.github/workflows/on-push.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,4 @@ jobs:
2121
- name: Build
2222
run: |
2323
python setup.py sdist bdist_wheel
24-
- name: Try a run
25-
run: |
26-
python -c "exec(\"from datetime import datetime as dt;from create_structure import create_structure;create_structure(answers={'name':str(int(dt.now().timestamp())),'extention':'py','descr':str(int(dt.now().timestamp())),'prefix':'push-test','team':'','private':'N'})\")" -t=${{ secrets.TEST_TOKEN }} -s=[CastellaniDavide] -o=CastellaniDavideTest -i=[.vs,.vscode]
24+

create_structure/__init__.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,8 @@ def scan_and_elaborate(self, loc=""):
209209
contents = self.template.get_contents(f"{loc}")
210210
for content_file in sorted(contents, reverse=True, key=create_structure.name_of_path): # Put .folders at the end
211211
if not content_file.path in [".castellanidavide", ""] + self.IGNORE:
212-
if content_file.path == ".github/workflows": # Wait the end of others before do workflows or 30 seconds
213-
try:
214-
initial_wait = dt.now()
215-
while (active_count() != 2): assert((dt.now() - initial_wait).seconds < 30)
216-
except:
217-
pass
212+
if content_file.path == ".github/workflows": # Wait the end of others before do workflows
213+
while (active_count() != 2): pass
218214

219215
if content_file.type == "file":
220216
Thread(target = self.create_file, args = (self.change(content_file.path), f"{self.change(wget(f'https://raw.githubusercontent.com/{self.template_name}/master/{content_file.path}').text)}")).start()

0 commit comments

Comments
 (0)