Skip to content

chore: remove type check #10

chore: remove type check

chore: remove type check #10

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install uv
uses: astral-sh/setup-uv@v2
- name: Install backend dependencies
run: |
cd backend
uv sync --all-extras
- name: Run Ruff (linting)
run: |
cd backend
uv run ruff check app tests
- name: Run Ruff (formatting check)
run: |
cd backend
uv run ruff format --check app tests
- name: Set up Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install frontend dependencies
run: |
cd frontend
bun install --frozen-lockfile
- name: Run ESLint
run: |
cd frontend
bun run lint
backend-tests:
needs: lint
runs-on: ubuntu-latest
services:
postgres:
image: postgres:18-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: csv_ingestion
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install uv
uses: astral-sh/setup-uv@v2
- name: Install dependencies
run: |
cd backend
uv sync --all-extras
- name: Run migrations
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: csv_ingestion
POSTGRES_HOST: localhost
POSTGRES_PORT: 5432
run: |
cd backend
uv run alembic upgrade head
- name: Run tests
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: csv_ingestion
POSTGRES_HOST: localhost
POSTGRES_PORT: 5432
SECRET_KEY: test-secret-key
run: |
cd backend
uv run pytest -v
frontend-tests:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: |
cd frontend
bun install --frozen-lockfile
- name: Run type check
run: |
cd frontend
bun run type-check
- name: Run tests
run: |
cd frontend
bun test
- name: Build
run: |
cd frontend
bun run build