Added test for create-pytorchjob.ipynb python notebook #2565
Workflow file for this run
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
name: Go generate Test | |
on: | |
- push | |
- pull_request | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
env: | |
GOPATH: ${{ github.workspace }}/go | |
defaults: | |
run: | |
working-directory: ${{ env.GOPATH }}/src/github.com/kubeflow/training-operator | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
path: ${{ env.GOPATH }}/src/github.com/kubeflow/training-operator | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: ${{ env.GOPATH }}/src/github.com/kubeflow/training-operator/go.mod | |
- name: Check Go modules | |
run: | | |
go mod tidy && pushd hack/swagger && go mod tidy && popd && git add go.* && | |
git diff --cached --exit-code || (echo 'Please run "go mod tidy" to sync Go modules' && exit 1); | |
- name: Check auto-generated assets | |
run: | | |
make generate && git add pkg sdk manifests && | |
git diff --cached --exit-code || (echo 'Please run "make generate" to generate assets' && exit 1); | |
- name: Verify gofmt | |
run: | | |
make fmt && git add pkg cmd && | |
git diff --cached --exit-code || (echo 'Please run "make fmt" to verify gofmt' && exit 1); | |
- name: Verify govet | |
run: | | |
make vet && git add pkg cmd && | |
git diff --cached --exit-code || (echo 'Please run "make vet" to verify govet' && exit 1); | |
- name: Verify golint | |
run: | | |
make golangci-lint |