Skip to content

Commit

Permalink
test: test gpu runners over cirun.io
Browse files Browse the repository at this point in the history
Signed-off-by: Utku Ozdemir <[email protected]>
  • Loading branch information
utkuozdemir committed Jul 17, 2024
1 parent a360446 commit d4aafde
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 33 deletions.
15 changes: 15 additions & 0 deletions .cirun.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
runners:
- name: gpu-runner
cloud: gcp
gpu: nvidia-tesla-t4
instance_type: n1-standard-1
machine_image: ubuntu-minimal-2404-noble-amd64-v20240714
preemptible: true
region:
- europe-west2-b
- europe-west2-a
- europe-west4-c
- europe-west4-b
- europe-west4-a
labels:
- cirun-gpu-runner
36 changes: 3 additions & 33 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,39 +30,9 @@ concurrency:

jobs:
build:
runs-on: ubuntu-22.04
runs-on: "cirun-gpu-runner--${{ github.run_id }}"
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Go
uses: actions/[email protected]
with:
go-version-file: go.mod
- name: Ensure go.mod is already tidied
run: go mod tidy && git diff --no-patch --exit-code
- name: Run linters
uses: golangci/[email protected]
with:
# renovate: depName=golangci/golangci-lint datasource=github-releases
version: v1.59.1
args: --timeout=3m0s
- name: Install richgo
# renovate: depName=kyoh86/richgo
run: go install github.com/kyoh86/[email protected]
- name: Run tests
run: richgo test -race -coverpkg=./... -coverprofile=coverage.txt -covermode=atomic -timeout 20m -v ./...
env:
RICHGO_FORCE_COLOR: 1
- name: Send coverage
uses: codecov/[email protected]
with:
files: coverage.txt
token: ${{ secrets.CODECOV_TOKEN }}
- name: Build with Goreleaser
uses: goreleaser/[email protected]
with:
# renovate: depName=goreleaser/goreleaser datasource=github-releases
version: v2.1.0
args: release --snapshot --skip=publish --clean
env:
PRIVATE_ACCESS_TOKEN: placeholder
- name: Test nvidia-smi
run: nvidia-smi -L

0 comments on commit d4aafde

Please sign in to comment.