Skip to content

Commit cd366d7

Browse files
authored
CI action (#6)
1 parent 962fa72 commit cd366d7

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

.github/workflows/CI.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
8+
jobs:
9+
CI:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: checkout code
13+
uses: actions/checkout@v4
14+
with:
15+
submodules: false
16+
17+
- name: Set latest tag and branch name
18+
run: |
19+
echo "GIT_BRANCH=gha-ci" >> $GITHUB_ENV
20+
echo "TAG=$GITHUB_RUN_ID" >> $GITHUB_ENV
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: '3.11'
26+
27+
- name: Install Helm
28+
uses: azure/setup-helm@v4
29+
30+
- name: Install Helm unittest plugin
31+
run: |
32+
helm plugin install https://github.com/helm-unittest/helm-unittest.git
33+
34+
- name: Run pre-commit checks
35+
run: |
36+
pip install pre-commit
37+
pre-commit run --show-diff-on-failure --color=always --all-files
38+

tools/pytorchjob-generator/chart/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
An AppWrapper generator for PyTorchJobs
44

5-
![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.16.0](https://img.shields.io/badge/AppVersion-1.16.0-informational?style=flat-square)
5+
![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1beta2](https://img.shields.io/badge/AppVersion-v1beta2-informational?style=flat-square)
66

77
## Overview
88

0 commit comments

Comments
 (0)