feat: Initialize frontend and backend structure with essential configurations
- Added TypeScript build info for frontend. - Created Vite configuration for React application. - Implemented pre-commit hook to run checks before commits. - Set up PostgreSQL Dockerfile with PostGIS support and initialization scripts. - Added database creation script for PostgreSQL with necessary extensions. - Established Python project configuration with dependencies and development tools. - Developed pre-commit script to enforce code quality checks for backend and frontend. - Created PowerShell script to set up Git hooks path.
This commit is contained in:
47
.github/workflows/backend-ci.yml
vendored
Normal file
47
.github/workflows/backend-ci.yml
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
name: Backend CI
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "backend/**"
|
||||
- "scripts/**"
|
||||
- "pyproject.toml"
|
||||
- "TODO.md"
|
||||
- ".github/workflows/backend-ci.yml"
|
||||
pull_request:
|
||||
paths:
|
||||
- "backend/**"
|
||||
- "scripts/**"
|
||||
- "pyproject.toml"
|
||||
- "TODO.md"
|
||||
|
||||
jobs:
|
||||
lint-and-test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.10"
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m venv .venv
|
||||
source .venv/bin/activate
|
||||
pip install -e .[dev]
|
||||
|
||||
- name: Run formatters (check mode)
|
||||
run: |
|
||||
source .venv/bin/activate
|
||||
python -m black --check backend
|
||||
python -m isort --check-only backend
|
||||
|
||||
- name: Run backend tests
|
||||
run: |
|
||||
source .venv/bin/activate
|
||||
pytest
|
||||
Reference in New Issue
Block a user