favicon + ci workflow + makefile changes (#33)

* favicon + ci workflow + makefile changes

* fix lint

* run workflows on any branch/pr

* fix workflow
This commit is contained in:
Harvey
2026-04-08 02:06:17 +01:00
committed by GitHub
parent df779c9e6d
commit 31e0412232
24 changed files with 469 additions and 275 deletions
+56
View File
@@ -0,0 +1,56 @@
name: Backend CI
on:
push:
branches: [main]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install Ruff
run: pip install ruff
- name: Run Ruff
run: ruff check backend
test:
name: Tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: 'pip'
cache-dependency-path: |
backend/requirements.txt
backend/requirements-dev.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt -r requirements-dev.txt pytest pytest-asyncio
- name: Run tests
run: python -m pytest
+26 -2
View File
@@ -1,10 +1,9 @@
name: Frontend CI Checks
name: Frontend CI
on:
push:
branches: [main]
pull_request:
branches: [main]
defaults:
run:
@@ -89,3 +88,28 @@ jobs:
- name: Run type check
run: pnpm run check
test:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '25'
cache: 'pnpm'
cache-dependency-path: frontend/pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run tests (server project)
run: pnpm exec vitest run --project server