Skip to content

Commit

Permalink
link for test button and always run cluster delete
Browse files Browse the repository at this point in the history
  • Loading branch information
sushmarchandran committed Mar 15, 2024
1 parent 3f03259 commit 233464a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ on:

jobs:
cluster-create-and-delete:
if: ${{ (github.event.review.state == 'approved') || (github.event_name == 'push')}}
runs-on: [ubuntu-20.04]
steps:
- uses: actions/checkout@v4
Expand All @@ -41,6 +40,7 @@ jobs:
- name: Create an XPK Cluster with 2x v4-8 nodepools
run: python xpk.py cluster create --cluster test-2-v4-8-nodepool --device-type=v4-8 --num-slices=2 --zone=us-central2-b --default-pool-cpu-machine-type=n1-standard-16 --spot --custom-cluster-arguments='${{ secrets.CLUSTER_ARGUMENTS }}'
- name: Delete the cluster created
if: always()
run: python xpk.py cluster delete --cluster test-2-v4-8-nodepool --zone=us-central2-b


Expand Down
1 change: 1 addition & 0 deletions .github/workflows/nightly_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
- name: Create an XPK Cluster with 2x v4-8 nodepools
run: python xpk.py cluster create --cluster test-2-v4-8-nodepool --device-type=v4-8 --num-slices=2 --zone=us-central2-b --default-pool-cpu-machine-type=n1-standard-16 --spot --custom-cluster-arguments='${{ secrets.CLUSTER_ARGUMENTS }}'
- name: Delete the cluster created
if: always()
run: python xpk.py cluster delete --cluster test-2-v4-8-nodepool --zone=us-central2-b


Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
limitations under the License.
-->

![Build Tests](https://github.com/google/xpk/actions/workflows/build_tests.yaml/badge.svg)
![Nightly Tests](https://github.com/google/xpk/actions/workflows/nightly_tests.yaml/badge.svg)
[![Build Tests](https://github.com/google/xpk/actions/workflows/build_tests.yaml/badge.svg)](https://github.com/google/xpk/actions/workflows/build_tests.yaml)
[![Nightly Tests](https://github.com/google/xpk/actions/workflows/nightly_tests.yaml/badge.svg)](https://github.com/google/xpk/actions/workflows/nightly_tests.yaml)

# Overview

Expand Down

0 comments on commit 233464a

Please sign in to comment.