Skip to content

Commit d3ce7eb

Browse files
committed
test: test gpu runners over cirun.io
Signed-off-by: Utku Ozdemir <[email protected]>
1 parent a360446 commit d3ce7eb

File tree

2 files changed

+20
-33
lines changed

2 files changed

+20
-33
lines changed

.cirun.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
runners:
2+
- name: gpu-runner
3+
cloud: gcp
4+
gpu: nvidia-tesla-t4
5+
instance_type: n1-standard-1
6+
machine_image: c0-deeplearning-common-gpu-v20240708-debian-11-py310
7+
preemptible: true
8+
region:
9+
- europe-west2-b
10+
- europe-west2-a
11+
- europe-west4-c
12+
- europe-west4-b
13+
- europe-west4-a
14+
labels:
15+
- cirun-gpu-runner

.github/workflows/build.yml

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -30,39 +30,11 @@ concurrency:
3030

3131
jobs:
3232
build:
33-
runs-on: ubuntu-22.04
33+
runs-on: "cirun-gpu-runner--${{ github.run_id }}"
3434
steps:
3535
- name: Checkout
3636
uses: actions/[email protected]
37-
- name: Setup Go
38-
uses: actions/[email protected]
39-
with:
40-
go-version-file: go.mod
41-
- name: Ensure go.mod is already tidied
42-
run: go mod tidy && git diff --no-patch --exit-code
43-
- name: Run linters
44-
uses: golangci/[email protected]
45-
with:
46-
# renovate: depName=golangci/golangci-lint datasource=github-releases
47-
version: v1.59.1
48-
args: --timeout=3m0s
49-
- name: Install richgo
50-
# renovate: depName=kyoh86/richgo
51-
run: go install github.com/kyoh86/[email protected]
52-
- name: Run tests
53-
run: richgo test -race -coverpkg=./... -coverprofile=coverage.txt -covermode=atomic -timeout 20m -v ./...
54-
env:
55-
RICHGO_FORCE_COLOR: 1
56-
- name: Send coverage
57-
uses: codecov/[email protected]
58-
with:
59-
files: coverage.txt
60-
token: ${{ secrets.CODECOV_TOKEN }}
61-
- name: Build with Goreleaser
62-
uses: goreleaser/[email protected]
63-
with:
64-
# renovate: depName=goreleaser/goreleaser datasource=github-releases
65-
version: v2.1.0
66-
args: release --snapshot --skip=publish --clean
67-
env:
68-
PRIVATE_ACCESS_TOKEN: placeholder
37+
- name: Install nvidia drivers
38+
run: /opt/deeplearning/install-driver.sh
39+
- name: Test nvidia-smi
40+
run: nvidia-smi -L

0 commit comments

Comments
 (0)