Skip to content

Chore/ci cd - #3

Merged
Muizzyranking merged 6 commits into
mainfrom
chore/ci-cd
Jun 10, 2026
Merged

Chore/ci cd#3
Muizzyranking merged 6 commits into
mainfrom
chore/ci-cd

Conversation

@Muizzyranking

Copy link
Copy Markdown
Owner

Summary

This PR establishes the CI/CD pipeline for Flint using GitHub Actions. It introduces automated linting, formatting checks, and unit testing for every pull request, alongside a deployment
workflow that triggers upon successful completion of the CI suite on the main branch.

Type of Change

  • New Feature (CI/CD Workflows)
  • Chore (Linting, tests, and dependencies)
  • Test Addition/Update

Key Changes

  • CI Workflow (ci.yml):
    • Automatically runs on pushes and pull requests to main.
    • Uses astral-sh/setup-uv for fast dependency management.
    • Executes ruff check for linting and ruff format --check for code style validation.
    • Runs the pytest suite to ensure code quality.
  • CD Workflow (cd.yml):
    • Triggered by a successful CI workflow run on main.
    • Deploys the latest code to an EC2 instance via SSH.
    • Automatically regenerates the .env file from GitHub Secrets and restarts services using docker-compose.
  • Quality Assurance:
    • Added tests/test_health.py to verify the application's basic health check endpoint.
    • Introduced ruff into the project dependencies for automated linting and formatting.

Database Migrations

  • This PR includes database migrations (alembic/versions/).
  • Migrations have been tested locally.

Testing Strategy

  • Unit tests added/updated (test_health.py).
  • Integration tests added/updated (CI workflow validates the full build).
  • Manual testing performed (Verified workflow syntax and dependency installation).

Checklist

  • Code follows the project's style guidelines.
  • uv.lock and pyproject.toml are updated.
  • Documentation (in docs/) has been updated if necessary.
  • I have verified the changes in a local environment.

Screenshots / Console Logs

N/A (GitHub Actions workflow files)


@Muizzyranking
Muizzyranking merged commit 89aaaaf into main Jun 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant