From ecc0a799100b57359576a4eb17e4adf9de136856 Mon Sep 17 00:00:00 2001 From: David Grove Date: Fri, 28 Jun 2024 15:55:59 -0400 Subject: [PATCH] CI action --- .github/workflows/CI.yaml | 38 ++++++++++++++++++++++ tools/pytorchjob-generator/chart/README.md | 2 +- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/CI.yaml diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml new file mode 100644 index 0000000..517eac1 --- /dev/null +++ b/.github/workflows/CI.yaml @@ -0,0 +1,38 @@ +name: CI +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + CI: + runs-on: ubuntu-latest + steps: + - name: checkout code + uses: actions/checkout@v4 + with: + submodules: false + + - name: Set latest tag and branch name + run: | + echo "GIT_BRANCH=gha-ci" >> $GITHUB_ENV + echo "TAG=$GITHUB_RUN_ID" >> $GITHUB_ENV + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Install Helm + uses: azure/setup-helm@v4 + + - name: Install Helm unittest plugin + run: | + helm plugin install https://github.com/helm-unittest/helm-unittest.git + + - name: Run pre-commit checks + run: | + pip install pre-commit + pre-commit run --show-diff-on-failure --color=always --all-files + diff --git a/tools/pytorchjob-generator/chart/README.md b/tools/pytorchjob-generator/chart/README.md index e98ca66..ee63844 100644 --- a/tools/pytorchjob-generator/chart/README.md +++ b/tools/pytorchjob-generator/chart/README.md @@ -2,7 +2,7 @@ An AppWrapper generator for PyTorchJobs -![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) +![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) ## Overview