Seperate backend & frontend CI

This commit is contained in:
ThatOneCalculator 2024-01-03 14:43:35 -08:00
parent 60b6907203
commit 6ce41c712c
No known key found for this signature in database
GPG key ID: 8703CACD01000000
2 changed files with 36 additions and 5 deletions

View file

@ -18,10 +18,11 @@ jobs:
- name: Use Bun
uses: oven-sh/setup-bun@v1
- run: bun --version
- run: bun install --frozen-lockfile
- name: Install frontend dependencies
run: bun install --frozen-lockfile
# - run: bun run lint
# - run: bun run lint:backend
# - run: bun run lint:types
- run: bun run format
- run: bun run format:backend
- run: bun run build
- name: Format frontend
run: bun run format
- name: Build frontend
run: bun run build

30
.github/workflows/python.yaml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Python CI
on:
push:
branches: ['main']
pull_request:
jobs:
build:
name: 'Format & Build' # Format, Lint, & Build
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 yapf
pip install pylint
- name: Lint backend
run: bun run lint:backend
- name: Format backend
run: bun run format:backend