Add AKS LoRA fine-tuning example for GPU workloads #363
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: Lint checker | |
| on: | |
| pull_request: null | |
| jobs: | |
| build: | |
| name: Lint checker | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| packages: read | |
| statuses: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Super-linter check | |
| uses: super-linter/super-linter@v7.4.0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| FIX_JSON_PRETTIER: true | |
| FIX_YAML_PRETTIER: true | |
| FIX_MARKDOWN_PRETTIER: true | |
| FIX_MARKDOWN: false | |
| FIX_PYTHON_ISORT: true | |
| FIX_PYTHON_PYINK: true | |
| FIX_SHELL_SHFMT: true | |
| BASH_SEVERITY: error | |
| VALIDATE_CHECKOV: false | |
| VALIDATE_DOCKERFILE_HADOLINT: false | |
| VALIDATE_NATURAL_LANGUAGE: false | |
| FIX_JUPYTER_NBQA_BLACK: true | |
| FIX_JUPYTER_NBQA_ISORT: true | |
| FIX_JUPYTER_NBQA_RUFF: true | |
| PYTHON_PYLINT_CONFIG_FILE: ".python-lint" | |
| # Disable linters with pre-existing widespread issues | |
| VALIDATE_YAML: false # YAML linter fails on Helm templates (false positives) | |
| VALIDATE_KUBERNETES_KUBECONFORM: false # Fails on Helm templates | |
| VALIDATE_JSCPD: false # Copy-paste detection has many pre-existing violations | |
| VALIDATE_BASH_EXEC: false # Script execution issues exist | |
| VALIDATE_PYTHON_PYLINT: false # Many pre-existing pylint issues | |
| VALIDATE_PYTHON_FLAKE8: false # Many pre-existing flake8 issues | |
| VALIDATE_PYTHON_MYPY: false # Many pre-existing type checking issues | |
| VALIDATE_PYTHON_RUFF: false # Many pre-existing ruff issues | |
| VALIDATE_MARKDOWN: false # Many pre-existing markdown issues | |
| VALIDATE_EDITORCONFIG: false # Deprecated config key warning from super-linter | |
| # Disable Black in favor of Pyink to avoid formatter conflicts | |
| VALIDATE_PYTHON_BLACK: false | |
| # Filter out Helm chart templates from remaining YAML checks | |
| FILTER_REGEX_EXCLUDE: ".*helm.*templates/.*\\.yaml$" | |
| - name: Generate linting patch | |
| if: ${{ github.event_name == 'pull_request' }} | |
| run: | | |
| if git diff --quiet; then | |
| echo "No changes to include in patch." | |
| else | |
| git diff > super-linter-fixes.patch | |
| fi | |
| - name: Upload linting patch artifact | |
| if: ${{ github.event_name == 'pull_request' }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: super-linter-fixes | |
| path: super-linter-fixes.patch | |
| if-no-files-found: ignore | |
| - name: Cleanup linting patch | |
| if: ${{ github.event_name == 'pull_request' }} | |
| run: | | |
| if [ -f super-linter-fixes.patch ]; then | |
| rm super-linter-fixes.patch | |
| fi | |
| - name: Check for changes | |
| id: check_changes | |
| if: ${{ github.event_name == 'pull_request' && github.ref_name != github.event.repository.default_branch }} | |
| run: | | |
| if git diff --quiet; then | |
| echo "has_changes=false" >> "$GITHUB_OUTPUT" | |
| echo "No linting changes to commit." | |
| else | |
| echo "has_changes=true" >> "$GITHUB_OUTPUT" | |
| echo "Linting changes detected." | |
| fi | |
| - name: Commit and push linting fixes | |
| # Run only on: | |
| # - Pull requests | |
| # - Not on the default branch | |
| # - When there are actual changes to commit | |
| if: ${{ github.event_name == 'pull_request' && github.ref_name != github.event.repository.default_branch && steps.check_changes.outputs.has_changes == 'true' }} | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| branch: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }} | |
| commit_message: "super-linter: fix linting issues [skip ci]" | |
| skip_dirty_check: true | |
| skip_fetch: true | |
| skip_checkout: true | |
| commit_user_name: super-linter | |
| commit_user_email: super-linter@super-linter.dev |