Implement authentication via Gitea
Some checks failed
/ checks (pull_request) Failing after 14s

This commit is contained in:
Bart van der Braak 2024-11-20 23:59:35 +01:00
parent 0f45b38432
commit edb56e96dc
22 changed files with 134 additions and 82 deletions

View file

@ -47,7 +47,7 @@ class CodeBuilder(worker.utils.Builder):
# Call command with in compiler environment.
def call(
self, cmd: worker.utils.CmdSequence, env: worker.utils.CmdEnvironment = None
self, cmd: worker.utils.CmdSequence, env: worker.utils.Cmdenvironment = None
) -> int:
cmd_prefix: worker.utils.CmdList = []

View file

@ -115,7 +115,7 @@ CmdArgument = Union[str, pathlib.Path, HiddenArgument, Any]
CmdList = List[CmdArgument]
CmdSequence = Sequence[CmdArgument]
CmdFilterOutput = Optional[Callable[[str], Optional[str]]]
CmdEnvironment = Optional[Dict[str, str]]
Cmdenvironment = Optional[Dict[str, str]]
def _prepare_call(
@ -142,7 +142,7 @@ def _prepare_call(
def call(
cmd: CmdSequence,
env: CmdEnvironment = None,
env: Cmdenvironment = None,
exit_on_error: bool = True,
filter_output: CmdFilterOutput = None,
retry_count: int = 0,