Skip to content

Commit

Permalink
Setup develop branch (#349)
Browse files Browse the repository at this point in the history
* setup develop branch

Signed-off-by: Piotr Pawłowski <[email protected]>
---------

Signed-off-by: Piotr Pawłowski <[email protected]>
  • Loading branch information
pawloch00 authored Jan 29, 2025
1 parent f14d7fe commit 5c617a3
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 30 deletions.
31 changes: 1 addition & 30 deletions .github/workflows/build_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ on:
- v4-8
- v5litepod-8
push:
branches: ["main"]
branches: ["main","develop"]
pull_request: # By default this runs for types assigned, opened and synchronize.

env:
Expand All @@ -44,37 +44,8 @@ env:
REGION: us-central2

jobs:
label-validation:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- id: check-labels
uses: mheap/github-action-required-labels@v5
with:
mode: minimum
count: 1
labels: "release-improvements, release-bugfix, release-features"
message: "This PR is being prevented from merging because it is not labeled. Please add a label to this PR. Accepted labels: release-improvements, release-bugfix, release-features"
- id: do-not-merge
uses: mheap/github-action-required-labels@v5
with:
mode: exactly
count: 0
labels: "do-not-merge"
add_comment: false
- id: print-labels
run: |
echo "Current PR labels:"
for f in $(echo "${{steps.check-labels.outputs.labels}}" | sed "s/,/ /g")
do
echo "$f"
done
run-unit-tests:
runs-on: [ubuntu-22.04]
needs:
- label-validation
concurrency: # We support one build or nightly test to run at a time currently.
group: build-test-cluster-group
cancel-in-progress: false
Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/label-validation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: 'Ensure PR label exists'

on:
pull_request:
types:
- opened
- labeled
- unlabeled
- synchronize
- edited
- ready_for_review
- unlocked
branches:
- develop

jobs:
label-validation:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- id: check-labels
uses: mheap/github-action-required-labels@v5
with:
mode: minimum
count: 1
labels: "release-improvements, release-bugfix, release-features"
message: "This PR is being prevented from merging because it is not labeled. Please add a label to this PR. Accepted labels: release-improvements, release-bugfix, release-features"
- id: do-not-merge
uses: mheap/github-action-required-labels@v5
with:
mode: exactly
count: 0
labels: "do-not-merge"
add_comment: false
- id: print-labels
run: |
echo "Current PR labels:"
for f in $(echo "${{steps.check-labels.outputs.labels}}" | sed "s/,/ /g")
do
echo "$f"
done
3 changes: 3 additions & 0 deletions .github/workflows/nightly_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@
name: Nightly Tests

on:
push:
branches: ["develop"]
workflow_dispatch:
schedule: # Schedule the job run at 12AM PST daily.
- cron: '0 8 * * *'


env:
# Names must be unique in parallel running tests.
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

[![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)
[![Develop Tests](https://github.com/AI-Hypercomputer/xpk/actions/workflows/build_tests.yaml/badge.svg?branch=develop)](https://github.com/AI-Hypercomputer/xpk/actions/workflows/build_tests.yaml)
[![Develop Nightly Tests](https://github.com/AI-Hypercomputer/xpk/actions/workflows/nightly_tests.yaml/badge.svg?branch=develop)](https://github.com/AI-Hypercomputer/xpk/actions/workflows/nightly_tests.yaml)

# Overview

Expand Down

0 comments on commit 5c617a3

Please sign in to comment.