Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# ===================================
# Database Configuration
# ===================================
# For docker-compose
POSTGRES_USER=memu_user
POSTGRES_PASSWORD=memu_pass
POSTGRES_DB=memu_db

# For application
DATABASE_HOST=localhost
DATABASE_PORT=54320
DATABASE_USER=memu_user
DATABASE_PASSWORD=memu_pass
DATABASE_NAME=memu_db

# ===================================
# Temporal Configuration
# ===================================
TEMPORAL_HOST=localhost
TEMPORAL_PORT=17233
TEMPORAL_NAMESPACE=default

# ===================================
# LLM Configuration
# ===================================
OPENAI_API_KEY=your_openai_api_key_here
OPENAI_BASE_URL=https://api.openai.com/v1
DEFAULT_LLM_MODEL=gpt-4o-mini

# ===================================
# Embedding Configuration
# ===================================
EMBEDDING_API_KEY=your_embedding_api_key_here
EMBEDDING_BASE_URL=https://api.voyageai.com/v1
EMBEDDING_MODEL=voyage-3.5-lite

# ===================================
# Storage Configuration
# ===================================
STORAGE_PATH=/var/data/memu-server
14 changes: 7 additions & 7 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ body:
attributes:
value: |
Thanks for taking the time to report a bug! Please fill out the form below.

- type: textarea
id: description
attributes:
Expand All @@ -16,7 +16,7 @@ body:
placeholder: Describe the bug...
validations:
required: true

- type: textarea
id: reproduction
attributes:
Expand All @@ -28,7 +28,7 @@ body:
3. See error
validations:
required: true

- type: textarea
id: expected
attributes:
Expand All @@ -37,7 +37,7 @@ body:
placeholder: What should happen?
validations:
required: true

- type: textarea
id: actual
attributes:
Expand All @@ -46,7 +46,7 @@ body:
placeholder: What actually happened?
validations:
required: true

- type: textarea
id: environment
attributes:
Expand All @@ -58,7 +58,7 @@ body:
- memU-server Version: [e.g. 1.0.0]
validations:
required: false

- type: textarea
id: logs
attributes:
Expand All @@ -67,7 +67,7 @@ body:
render: shell
validations:
required: false

- type: textarea
id: additional
attributes:
Expand Down
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ body:
attributes:
value: |
Thanks for suggesting a new feature! Please fill out the form below.

- type: textarea
id: problem
attributes:
Expand All @@ -16,7 +16,7 @@ body:
placeholder: I'm always frustrated when...
validations:
required: true

- type: textarea
id: solution
attributes:
Expand All @@ -25,7 +25,7 @@ body:
placeholder: I would like to have...
validations:
required: true

- type: textarea
id: alternatives
attributes:
Expand All @@ -34,7 +34,7 @@ body:
placeholder: Alternative approaches could be...
validations:
required: false

- type: textarea
id: benefits
attributes:
Expand All @@ -43,7 +43,7 @@ body:
placeholder: This feature would help users...
validations:
required: false

- type: textarea
id: additional
attributes:
Expand Down
12 changes: 6 additions & 6 deletions .github/ISSUE_TEMPLATE/improvement_suggestion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ body:
attributes:
value: |
Thanks for suggesting an improvement! Please fill out the form below.

- type: textarea
id: current
attributes:
Expand All @@ -16,7 +16,7 @@ body:
placeholder: Currently, the system...
validations:
required: true

- type: textarea
id: suggested
attributes:
Expand All @@ -25,7 +25,7 @@ body:
placeholder: It would be better if...
validations:
required: true

- type: textarea
id: rationale
attributes:
Expand All @@ -34,7 +34,7 @@ body:
placeholder: This would improve...
validations:
required: true

- type: textarea
id: impact
attributes:
Expand All @@ -43,7 +43,7 @@ body:
placeholder: This would affect...
validations:
required: false

- type: textarea
id: implementation
attributes:
Expand All @@ -52,7 +52,7 @@ body:
placeholder: This could be implemented by...
validations:
required: false

- type: textarea
id: additional
attributes:
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Code Quality

on:
push:
branches: [ main, develop, 'feature/**' ]
pull_request:
branches: [ main, develop ]

jobs:
quality-check:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.13"]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.local/bin" >> $GITHUB_PATH

- name: Install dependencies
run: |
uv venv
uv sync

- name: Check code formatting
run: |
uv run ruff format --check .

- name: Lint code
run: |
uv run ruff check .

- name: Run tests
Copy link

Copilot AI Jan 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CI workflow runs tests (line 43) but doesn't set up the required environment variables (OPENAI_API_KEY, DATABASE_URL) that are validated in app/main.py. The tests will fail during CI because the app module import will raise a RuntimeError when these environment variables are missing. Add environment variable configuration to the workflow or mock them in the test setup.

Suggested change
- name: Run tests
- name: Run tests
env:
OPENAI_API_KEY: "test-openai-key"
DATABASE_URL: "sqlite:///:memory:"

Copilot uses AI. Check for mistakes.
run: |
uv run pytest -v --cov=app --cov-report=xml --cov-report=term

- name: Upload coverage reports
if: matrix.python-version == '3.13'
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
fail_ci_if_error: false
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Loading
Loading