Major UT Overhaul (#16544)

* Removes old UT definition files (drone/travis)
* Adds concurrency definitions to the workflows
* Changes our workflows to be more in line with what /tg does
* Adds a workflow to build/commit TGUI
* Adds a workflow to build/commit changelogs

Add python version to dependencies.sh
Fix dme errors
Removes a bunch of not included files
Cache Opendream and add directory to check_grep.py

Co-authored-by: Werner <Arrow768@users.noreply.github.com>
This commit is contained in:
Werner
2023-06-27 16:44:16 +02:00
committed by GitHub
parent 1e0c7d8dd2
commit 3742231bc2
205 changed files with 1433 additions and 7692 deletions

View File

@@ -1,4 +1,3 @@
#!/usr/bin/env python3
# Common code for the frontend interface of map tools
import sys
import os
@@ -94,26 +93,26 @@ def process(settings, verb, *, modify=True, backup=None):
return
if modify:
print("Maps WILL{} be converted to tgm.".format('' if settings.tgm else ' NOT'))
print(f"Maps WILL{'' if settings.tgm else ' NOT'} be converted to tgm.")
if backup:
print("Backups will be created with a \".before\" extension.")
else:
print("Warning: backups are NOT being taken.")
print("\nWill {} these maps:".format(verb))
print(f"\nWill {verb} these maps:")
for path_str in maps:
print(pretty_path(settings, path_str))
try:
confirm = input("\nPress Enter to {}...\n".format(verb))
confirm = input(f"\nPress Enter to {verb}...\n")
except KeyboardInterrupt:
confirm = "^C"
if confirm != "":
print("\nAborted.")
print(f"\nAborted.")
return
for path_str in maps:
print(" - {}".format(pretty_path(settings, path_str)))
print(f' - {pretty_path(settings, path_str)}')
if backup:
shutil.copyfile(path_str, path_str + ".before")
@@ -121,7 +120,7 @@ def process(settings, verb, *, modify=True, backup=None):
try:
yield path_str
except Exception as e:
print("Error: {}".format(e))
print(f"Error: {e}")
else:
print("Succeeded.")