Skip to content

Conversation

@scaliby
Copy link
Member

@scaliby scaliby commented Oct 29, 2025

Description

Issue

Testing

Comment on lines +20 to +22
uses: ./.github/workflows/reusable_build_wheel.yaml
secrets: inherit
cpu-cluster:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
Comment on lines +22 to +44
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

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Comment on lines 23 to 59
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

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
@scaliby scaliby closed this Oct 30, 2025
@scaliby scaliby deleted the nightly-v2 branch November 4, 2025 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant