feat(config): preconfigure GPU accelerator override matrix #520
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 | |
| on: | |
| pull_request: | |
| branches: [main, develop] | |
| push: | |
| branches: [main, develop] | |
| jobs: | |
| python-lint: | |
| name: Python (Ruff) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Ruff | |
| run: pip install ruff | |
| - name: Run Ruff linter | |
| run: ruff check . | |
| - name: Run Ruff formatter check | |
| run: ruff format --check . | |
| installer-tests: | |
| name: Installer Unit Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Install test deps | |
| run: pip install pytest pyyaml | |
| - name: Run installer unit tests | |
| run: python -m pytest tests/installer -v | |
| frontend-lint: | |
| name: Frontend (ESLint + TypeScript) | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: runtime | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'pnpm' | |
| cache-dependency-path: runtime/pnpm-lock.yaml | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Run ESLint | |
| run: pnpm run lint | |
| - name: Build (TypeScript check) | |
| run: pnpm run build | |
| shell-lint: | |
| name: Shell (ShellCheck) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install ShellCheck | |
| run: sudo apt-get install -y shellcheck | |
| - name: Run ShellCheck | |
| run: | | |
| find . -name "*.sh" -o -name "*.bash" | \ | |
| grep -v node_modules | \ | |
| grep -v .git | \ | |
| xargs -r shellcheck | |
| yaml-lint: | |
| name: YAML (yamllint) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install yamllint | |
| run: pip install yamllint | |
| - name: Run yamllint | |
| run: yamllint . |