Merged
Conversation
…d files and update packages
…action, and remove obsolete workflows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a major overhaul of the project's CI/CD pipeline and Docker deployment process, unifying and modernizing the workflows for building, testing, and releasing both the backend and frontend components. It adds robust Docker support, streamlines environment configuration, and introduces pre-commit hooks for code quality. The most significant changes are grouped below.
CI/CD and Workflow Unification:
.github/workflows/ci_ui.ymland.github/workflows/ci_api.yml, merging their logic into a single, unified.github/workflows/ci.ymlthat now runs both backend and frontend (Flutter) tests, analysis, and coverage reporting. [1] [2] [3]build_api.ymlworkflow with a new, more robust.github/workflows/build.ymlfor building, verifying, and artifacting the Python wheel. [1] [2].github/workflows/docker.ymlto automate Docker image building, health checking, release packaging, and publishing to GitHub Container Registry, including release note generation..github/actions/docker-check-containers/action.yml.Dockerization and Deployment:
Dockerfilefor efficient building and deployment of the Python backend, including wheel build, runtime setup, and startup/healthcheck scripts.docker-compose.ymlfor orchestrating the container, with persistent volumes and environment variable support..env.examplefor environment configuration, including host, port, and API token hash.Code Quality and Tooling:
.pre-commit-config.yamlwith hooks for linting, formatting (ruff), type checking (mypy), and various file hygiene checks.Configuration and Environment:
configuration/config.jsonby removing server host and port settings, which are now handled via environment variables and.envfiles.CI/CD and Workflow Improvements
.github/workflows/ci.yml, removed legacy workflows, and ensured both Python and Flutter code are tested and analyzed in a single pipeline. [1] [2] [3]build_api.ymlwith a more robust.github/workflows/build.ymlfor wheel building and verification. [1] [2].github/workflows/docker.ymlfor Docker build, health check, release packaging, and automated publishing to GitHub Container Registry with release notes..github/actions/docker-check-containers/action.ymlfor automated Docker container health checks in CI.Dockerization and Deployment
Dockerfilefor backend build and runtime, including wheel installation, startup logic, and health checks.docker-compose.ymlfor orchestrating the container with persistent volumes and environment variable configuration..env.examplefor standardized environment configuration.Code Quality and Tooling
.pre-commit-config.yamlwith linting, formatting, and type-checking hooks to enforce code quality pre-commit.Configuration
configuration/config.json, moving these settings to environment variables for better containerization.