Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: test gpu runners over cirun.io #207

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: c0-deeplearning-common-gpu-v20240708-debian-11-py310
preemptible: true
region:
- europe-west2-b
- europe-west2-a
- europe-west4-c
- europe-west4-b
- europe-west4-a
labels:
- cirun-gpu-runner
38 changes: 5 additions & 33 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,39 +30,11 @@ 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: Install nvidia drivers
run: /opt/deeplearning/install-driver.sh
- name: Test nvidia-smi
run: nvidia-smi -L
Loading