From adb5af14860f9bf45d7a46ed2506618a63115509 Mon Sep 17 00:00:00 2001 From: panxiao81 Date: Mon, 21 Sep 2026 15:43:26 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=BA=E9=95=9C=E5=83=8F=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E5=87=86=E5=A4=87=E6=9E=84=E5=BB=BA=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E9=93=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/publish-images.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/publish-images.yml b/.gitea/workflows/publish-images.yml index 0cb4bd2..bb09832 100644 --- a/.gitea/workflows/publish-images.yml +++ b/.gitea/workflows/publish-images.yml @@ -34,17 +34,27 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version-file: go.mod + + - uses: actions/setup-python@v5 + with: + python-version: '3.12' + - name: Test source shell: bash run: | set -euo pipefail go test ./... go vet ./... - python3 -m pip install --break-system-packages -e '.[test]' + python3 -m venv /tmp/test-venv + source /tmp/test-venv/bin/activate + python3 -m pip install -e '.[test]' pytest -q python3 -m compileall -q src tests - apt-get update - apt-get install --yes --no-install-recommends shellcheck + sudo apt-get update + sudo apt-get install --yes --no-install-recommends shellcheck shellcheck scripts/* - name: Build and publish