Test gpu runner image #4568
This file contains 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: | |
types: | |
- opened # default trigger | |
- reopened # default trigger | |
- synchronize # default trigger | |
- ready_for_review # don't run on draft PRs | |
- milestoned # allows us to trigger on bot PRs | |
# Declare default permissions as read only. | |
permissions: read-all | |
jobs: | |
ruff: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Validate Lint | |
uses: chartboost/ruff-action@e18ae971ccee1b2d7bbef113930f00c670b78da4 # v1.0.0 | |
with: | |
version: 0.3.4 | |
- name: Validate Formatting | |
uses: chartboost/ruff-action@e18ae971ccee1b2d7bbef113930f00c670b78da4 # v1.0.0 | |
with: | |
version: 0.3.4 | |
args: format --check | |
# Javascript & Typescript Linting | |
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
with: | |
node-version-file: 'src/leapfrogai_ui/package.json' | |
- name: Install UI Dependencies | |
run: npm --prefix src/leapfrogai_ui ci | |
- name: Run UI Linter | |
run: npm --prefix src/leapfrogai_ui run lint |