admin b5c083e06f
Some checks failed
CodeQL / Analyze (go) (push) Successful in 6m28s
Docker Image / build-docker (push) Failing after 13m26s
Lint and Testing / lint (push) Successful in 11m17s
Lint and Testing / test (push) Successful in 11m17s
Lint and Testing / golangci (push) Successful in 2m40s
first commit
2026-06-04 18:10:52 +07:00

63 lines
1.5 KiB
YAML

name: Lint and Testing
on:
push:
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Hadolint Dockerfile (CI)
uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: docker/Dockerfile.ci
- name: Hadolint Dockerfile (GPU)
uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: docker/Dockerfile
continue-on-error: true
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
build-essential cmake git libsentencepiece-dev pkg-config
- name: Unit tests (no CGO whisper)
run: go test ./config/... ./punctuation/... ./transcode/... -count=1
- name: Build with xlm punctuation and run full tests
run: make dependency && make test TAGS=xlm
golangci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
args: --timeout=10m
continue-on-error: true