From 604f7987661e993fe643e5a140638a8a7dc84ab9 Mon Sep 17 00:00:00 2001 From: Verum Date: Thu, 5 Mar 2026 18:47:52 +0700 Subject: [PATCH] =?UTF-8?q?CI=20=D1=82=D0=B5=D1=81=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yaml | 43 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .gitea/workflows/ci.yaml diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..b590e3f --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,43 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + backend: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r backend/requirements.txt + + - name: Lint backend + run: | + pip install flake8 + flake8 backend + + frontend: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Check frontend files + run: | + test -f frontend/templates/index.html + test -f frontend/css/style.css + test -f frontend/js/main.js