fix(k8s): prefer GPU clique label for accelerator domains #1209
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow will build a golang project | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
| name: Go | |
| on: | |
| push: | |
| branches: | |
| - "pull-request/[0-9]+" | |
| jobs: | |
| check: | |
| runs-on: linux-amd64-cpu8 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: '1.25.9' | |
| - name: Lint | |
| uses: golangci/golangci-lint-action@v9 | |
| with: | |
| version: v2.4.0 | |
| args: -v --timeout 5m | |
| skip-cache: true | |
| - name: vet | |
| run: | |
| make vet | |
| - name: fmt | |
| run: | |
| test -z "$(go fmt ./...)" | |
| test: | |
| runs-on: linux-amd64-cpu8 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: '1.25.9' | |
| - name: Test | |
| run: go test -v -coverpkg=./... -coverprofile=coverage.out -covermode=atomic ./... | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ./coverage.out | |
| fail_ci_if_error: false | |
| verbose: true | |
| chart-test: | |
| runs-on: linux-amd64-cpu8 | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Helm | |
| uses: azure/setup-helm@v4 | |
| with: | |
| version: v3.20.0 | |
| - name: Helm chart tests | |
| run: make chart-test | |
| build: | |
| runs-on: linux-amd64-cpu8 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: '1.25.9' | |
| - name: Build | |
| run: | | |
| make build |