From 47ad3566fcf749a0c46c367406ec2971fad13242 Mon Sep 17 00:00:00 2001 From: David Wetmore <167476544+dwetmore@users.noreply.github.com> Date: Tue, 10 Feb 2026 16:54:14 -0500 Subject: [PATCH] Add CI workflow for lint test and build --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..4a38bc0 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: CI + +on: + pull_request: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.11" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install -r app/requirements.txt + python -m pip install pytest ruff + + - name: Lint with ruff + run: ruff check app + + - name: Run pytest + run: | + pytest -q || [ $? -eq 5 ] + + - name: Build Docker image + run: docker build -t chatbot-app -f app/Dockerfile app