Add Gitea Actions CI: tests on Python 3.10-3.13 and shellcheck
CI / tests (Python 3.10) (pull_request) Failing after 4s
CI / tests (Python 3.11) (pull_request) Failing after 4s
CI / tests (Python 3.12) (pull_request) Failing after 3s
CI / tests (Python 3.13) (pull_request) Failing after 3s
CI / lint (pull_request) Successful in 4s
CI / tests (Python 3.10) (pull_request) Failing after 4s
CI / tests (Python 3.11) (pull_request) Failing after 4s
CI / tests (Python 3.12) (pull_request) Failing after 3s
CI / tests (Python 3.13) (pull_request) Failing after 3s
CI / lint (pull_request) Successful in 4s
The matrix covers the Python versions on Ubuntu 22.04/24.04 and Debian 12/13. make lint now includes deploy.sh, and its token check is rewritten as an if statement to satisfy shellcheck SC2015. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c0b3ff991c
commit
792161edaa
4 files changed
+47
-3
No files matched your search
+5
-2
@@ -126,8 +126,11 @@ deploy_one() {
|
||||
if [[ $mode != upgrade ]]; then
|
||||
# 2. Get a token from the dashboard and hand it over on stdin, never argv.
|
||||
say " $mode $name on $DASHBOARD"
|
||||
token=$(fetch_token "$name" | tr -d '[:space:]') && [[ -n $token ]] ||
|
||||
{ echo " could not get a token for $name" >&2; cleanup; return 1; }
|
||||
if ! token=$(fetch_token "$name" | tr -d '[:space:]') || [[ -z $token ]]; then
|
||||
echo " could not get a token for $name" >&2
|
||||
cleanup
|
||||
return 1
|
||||
fi
|
||||
printf '%s\n' "$token" | ssh -T "$target" "umask 077 && cat > '$dir/token'" ||
|
||||
{ cleanup; return 1; }
|
||||
install+=(--server "$SERVER_URL" --token-file "$dir/token")
|
||||
|
||||
Reference in new issue
Block a user