Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
576d005
Faction Setting & Mode
cantis Dec 24, 2025
b92c884
Add comprehensive integration and unit tests for force and lance temp…
cantis Jan 1, 2026
8e0580e
refactor: Enhance testing documentation and structure for clarity and…
cantis Jan 1, 2026
faab1be
fix: Update in-memory database configuration for shared cache mode
cantis Jan 2, 2026
568c086
feat: Implement unique ID generation logic and update add form to pre…
cantis Jan 2, 2026
e843be0
chore: Bump version to 1.0.1 in pyproject.toml and uv.lock
cantis Jan 2, 2026
bb0ed95
Update app/templates/miniatures/add.html
cantis Jan 2, 2026
301e3c0
feat: Preserve filter state in add and edit forms, and enhance list v…
cantis Feb 17, 2026
1c6b71e
feat: Add deactivate-all route and button, enhance filter state handl…
cantis Feb 17, 2026
ddd294e
feat: Enhance dropdown functionality and improve table responsiveness…
cantis Feb 17, 2026
505433e
feat: Add Docker support with Gunicorn, configure database paths, and…
cantis Feb 21, 2026
1adf524
feat: Add GitHub Actions workflow for unit, integration, and parallel…
cantis Feb 23, 2026
42a3e0f
refactor: Improve error handling and messaging in miniatures and forc…
cantis Apr 10, 2026
685dcda
Update app/templates/miniatures/add.html
cantis Apr 10, 2026
2590d0e
Update app/templates/miniatures/edit.html
cantis Apr 10, 2026
327d87c
Update app/__init__.py
cantis Apr 10, 2026
9e026af
fix: Correct syntax error in JavaScript for prefill check in add mini…
cantis Apr 10, 2026
81b3b14
fix: Correct JavaScript syntax for prefill check in add miniature form
cantis Apr 10, 2026
648c404
Merge branch 'cantis/issue4' of https://github.com/cantis/MechBay int…
cantis Apr 10, 2026
12fbefb
fix: Update ProxyFix configuration and improve JSON handling in edit …
cantis Apr 10, 2026
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
115 changes: 115 additions & 0 deletions .github/workflows/tests.yml.off
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
name: Tests

on:
Comment on lines +1 to +3
Copy link

Copilot AI Apr 10, 2026

Choose a reason for hiding this comment

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

This workflow is named tests.yml.off, so GitHub Actions will ignore it. If the intent is to add CI coverage for the new test suite, the file needs to be named tests.yml (or similar) under .github/workflows/ to actually run.

Copilot uses AI. Check for mistakes.
push:
branches: [main, develop, "cantis/**"]
pull_request:
branches: [main, develop]
workflow_dispatch:

jobs:
unit-tests:
name: Unit Tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.14"]

steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "latest"

- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Install dependencies
run: uv sync

- name: Run unit tests
run: uv run pytest tests/*_unit.py -v --tb=short

- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: unit-test-results-${{ matrix.os }}
path: |
.pytest_cache/
test-results.xml
retention-days: 7

integration-tests:
name: Integration Tests
runs-on: ubuntu-latest
needs: unit-tests

steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "latest"

- name: Set up Python 3.14
run: uv python install 3.14

- name: Install dependencies
run: uv sync

- name: Run integration tests
run: uv run pytest tests/*_integration.py -v --tb=short -m slow

- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: integration-test-results
path: |
.pytest_cache/
test-results.xml
retention-days: 7

parallel-tests:
name: Parallel Test Suite
runs-on: ubuntu-latest
needs: [unit-tests, integration-tests]

steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "latest"

- name: Set up Python 3.14
run: uv python install 3.14

- name: Install dependencies
run: uv sync

- name: Run all tests in parallel
run: uv run pytest tests/ -n auto --tb=short --dist=loadgroup

- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: parallel-test-results
path: |
.pytest_cache/
test-results.xml
retention-days: 7

- name: Generate test summary
if: always()
run: |
echo "## Test Results" >> $GITHUB_STEP_SUMMARY
echo "Parallel test execution completed" >> $GITHUB_STEP_SUMMARY
36 changes: 36 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
FROM python:3.13-slim

WORKDIR /app

# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
&& rm -rf /var/lib/apt/lists/*

# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv

# Copy dependency files
COPY pyproject.toml uv.lock ./

# Install dependencies
RUN uv sync --frozen --no-dev

# Copy application code
COPY . .

# Create data directory
RUN mkdir -p /data

# Expose port
EXPOSE 5000

# Set environment variables
ENV PYTHONPATH=/app
ENV FLASK_APP=server.py

# Copy and set entrypoint
COPY scripts/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]
Loading
Loading