From 26f14a068dd54373514164f4deecd28d64b13ab8 Mon Sep 17 00:00:00 2001 From: M1000 Date: Fri, 13 Nov 2026 02:28:09 +0300 Subject: [PATCH] Add FastAPI CI workflow --- .gitea/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..4979b86 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,31 @@ +name: FastAPI CI + +on: + push: + branches: + - main + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Run tests + run: pytest -v + + - name: Build Docker image + run: docker build -t fastapi-demo:latest .