fix: replace Python CI workflow with Go CI

- Replace uv/ruff/pytest with Go setup, golangci-lint, go test
- Library-only: lint + test + release (tag) + notify, no Docker build
This commit is contained in:
2026-02-20 08:49:29 -05:00
parent 39673d31b8
commit 6901a0f1af
2 changed files with 297 additions and 292 deletions

View File

@@ -17,20 +17,22 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up uv - name: Set up Go
run: curl -LsSf https://astral.sh/uv/install.sh | sh && echo "$HOME/.local/bin" >> $GITHUB_PATH uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Set up Python - name: Run go vet
run: uv python install 3.13 run: go vet ./...
- name: Install dependencies - name: Install golangci-lint
run: uv sync --frozen --extra dev run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b "$(go env GOPATH)/bin"
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Run ruff check - name: Run golangci-lint
run: uv run ruff check . run: golangci-lint run ./...
- name: Run ruff format check
run: uv run ruff format --check .
test: test:
name: Test name: Test
@@ -39,17 +41,20 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up uv - name: Set up Go
run: curl -LsSf https://astral.sh/uv/install.sh | sh && echo "$HOME/.local/bin" >> $GITHUB_PATH uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Set up Python - name: Verify dependencies
run: uv python install 3.13 run: go mod verify
- name: Install dependencies - name: Build
run: uv sync --frozen --extra dev run: go build -v ./...
- name: Run tests with coverage - name: Run tests
run: uv run pytest --cov=handler_base --cov-report=xml --cov-report=term run: go test -v -race -coverprofile=coverage.out -covermode=atomic ./...
release: release:
name: Release name: Release