From 6c94787260967070ecaab62c43fc43c2b11aea6e Mon Sep 17 00:00:00 2001 From: trungt2 Date: Thu, 30 Jul 2026 08:40:44 +0700 Subject: [PATCH] Add CI test workflow --- .gitea/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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..bcb301f --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,26 @@ +name: Python CI + +on: [push, pull_request] + +jobs: + build-and-test: + runs-on: ubuntu-latest + steps: + - name: Checkout mã nguồn + uses: actions/checkout@v3 + + - name: Cài đặt Python + uses: actions/setup-python@v4 + with: + python-version: '3.10' + + - name: Cài đặt dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Kiểm tra định dạng mã (Linting) + run: ruff check . + + - name: Chạy Unit Tests + run: pytest -v \ No newline at end of file