-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: test gpu runners over cirun.io
Signed-off-by: Utku Ozdemir <[email protected]>
- Loading branch information
1 parent
a360446
commit d4aafde
Showing
2 changed files
with
18 additions
and
33 deletions.
There are no files selected for viewing
This file contains 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
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 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |