-
Notifications
You must be signed in to change notification settings - Fork 58
nightly v2 #757
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
nightly v2 #757
Conversation
| uses: ./.github/workflows/reusable_build_wheel.yaml | ||
| secrets: inherit | ||
| cpu-cluster: |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
| name: Build distribution | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.x" | ||
| - name: Install pypa/build | ||
| run: >- | ||
| python3 -m | ||
| pip install | ||
| build | ||
| --user | ||
| - name: Build a binary wheel and a source tarball | ||
| run: python3 -m build | ||
| - name: Store the distribution packages | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: python-package-distributions | ||
| path: dist/ |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
| runs-on: [ubuntu-22.04] | ||
| needs: [build] | ||
| env: | ||
| NAME: xpk-test-${{github.run_id}} | ||
| ZONE: us-central1-a | ||
| WORKLOAD: test-workload | ||
| steps: | ||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: '3.10' | ||
| - uses: actions/download-artifact@v4 | ||
| with: | ||
| name: python-package-distributions | ||
| path: dist/ | ||
| - uses: 'google-github-actions/auth@v2' | ||
| with: | ||
| credentials_json: '${{ secrets.GCP_SA_KEY }}' | ||
| - uses: google-github-actions/setup-gcloud@v2 | ||
| with: | ||
| version: '>= 363.0.0' | ||
| install_components: 'beta,gke-gcloud-auth-plugin' | ||
| - run: curl -Lo ./kubectl-kueue https://github.com/kubernetes-sigs/kueue/releases/download/v0.14.2/kubectl-kueue-linux-amd64 | ||
| - run: chmod +x ./kubectl-kueue | ||
| - run: mv ./kubectl-kueue /usr/local/bin/kubectl-kueue | ||
| - name: Install XPK | ||
| run: pip install dist/xpk-*.whl | ||
| - name: XPK version | ||
| run: xpk version | ||
| - name: Create cluster | ||
| run: xpk cluster create --cluster=${NAME} --zone=${ZONE} --device-type=n2-standard-32-1 --on-demand | ||
| - name: Create workload | ||
| run: xpk workload create --cluster=${NAME} --zone=${ZONE} --device-type=n2-standard-32-1 --workload=${WORKLOAD} --command "echo hello" | ||
| - name: List workloads | ||
| run: xpk workload list --cluster=${NAME} --zone=${ZONE} | ||
| - name: Delete cluster | ||
| if: always() | ||
| run: xpk cluster delete --cluster=${NAME} --zone=${ZONE} --force |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Description
Issue
Testing