fix: 为镜像发布准备构建工具链
test / shell (pull_request) Successful in 30s
test / python (pull_request) Successful in 1m2s
test / go (pull_request) Successful in 3m23s

This commit is contained in:
2026-09-21 15:43:26 +00:00
parent 94fc84a47c
commit adb5af1486
+13 -3
View File
@@ -34,17 +34,27 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - 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 - name: Test source
shell: bash shell: bash
run: | run: |
set -euo pipefail set -euo pipefail
go test ./... go test ./...
go vet ./... 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 pytest -q
python3 -m compileall -q src tests python3 -m compileall -q src tests
apt-get update sudo apt-get update
apt-get install --yes --no-install-recommends shellcheck sudo apt-get install --yes --no-install-recommends shellcheck
shellcheck scripts/* shellcheck scripts/*
- name: Build and publish - name: Build and publish