fix: 为镜像发布准备构建工具链
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user