diff --git a/.github/workflows/python.yaml b/.github/workflows/format-backend.yaml similarity index 80% rename from .github/workflows/python.yaml rename to .github/workflows/format-backend.yaml index f2d4e4dc0..9d767fa5b 100644 --- a/.github/workflows/python.yaml +++ b/.github/workflows/format-backend.yaml @@ -5,7 +5,7 @@ on: pull_request: jobs: build: - name: 'Format Backend' # Format & Lint + name: 'Format Backend' env: PUBLIC_API_BASE_URL: '' runs-on: ubuntu-latest @@ -23,8 +23,5 @@ jobs: run: | python -m pip install --upgrade pip pip install yapf - # pip install pylint - # - name: Lint backend - # run: bun run lint:backend - name: Format backend run: bun run format:backend diff --git a/.github/workflows/bun.yaml b/.github/workflows/format-build-frontend.yaml similarity index 79% rename from .github/workflows/bun.yaml rename to .github/workflows/format-build-frontend.yaml index f70b322db..3d84d1827 100644 --- a/.github/workflows/bun.yaml +++ b/.github/workflows/format-build-frontend.yaml @@ -5,7 +5,7 @@ on: pull_request: jobs: build: - name: 'Format & Build Frontend' # Format, Lint, & Build + name: 'Format & Build Frontend' env: PUBLIC_API_BASE_URL: '' runs-on: ubuntu-latest @@ -16,8 +16,6 @@ jobs: - run: bun --version - name: Install frontend dependencies run: bun install --frozen-lockfile - # - run: bun run lint - # - run: bun run lint:types - name: Format frontend run: bun run format - name: Build frontend diff --git a/.github/workflows/lint-backend.yaml b/.github/workflows/lint-backend.yaml new file mode 100644 index 000000000..d220031cc --- /dev/null +++ b/.github/workflows/lint-backend.yaml @@ -0,0 +1,27 @@ +name: Python CI +on: + push: + branches: ['main'] + pull_request: +jobs: + build: + name: 'Lint Backend' + env: + PUBLIC_API_BASE_URL: '' + runs-on: ubuntu-latest + strategy: + matrix: + node-version: + - latest + steps: + - uses: actions/checkout@v4 + - name: Use Python + uses: actions/setup-python@v4 + - name: Use Bun + uses: oven-sh/setup-bun@v1 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pylint + - name: Lint backend + run: bun run lint:backend diff --git a/.github/workflows/lint-frontend.yaml b/.github/workflows/lint-frontend.yaml new file mode 100644 index 000000000..cde38d754 --- /dev/null +++ b/.github/workflows/lint-frontend.yaml @@ -0,0 +1,20 @@ +name: Bun CI +on: + push: + branches: ['main'] + pull_request: +jobs: + build: + name: 'Lint Frontend' + env: + PUBLIC_API_BASE_URL: '' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Use Bun + uses: oven-sh/setup-bun@v1 + - run: bun --version + - name: Install frontend dependencies + run: bun install --frozen-lockfile + - run: bun run lint + - run: bun run lint:types \ No newline at end of file