From 4b9a5209ea840b51ad8fc62320613edfa5e84bc3 Mon Sep 17 00:00:00 2001 From: Artem Kashaev Date: Thu, 27 Nov 2025 14:38:40 +0500 Subject: [PATCH] feat: add Gitea Actions workflow for automated testing --- .gitea/workflows/test.yml | 51 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .gitea/workflows/test.yml diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml new file mode 100644 index 0000000..4821019 --- /dev/null +++ b/.gitea/workflows/test.yml @@ -0,0 +1,51 @@ +name: Test + +on: + push: + branches: + - "**" + paths: + - '**.py' + - 'pyproject.toml' + - 'poetry.lock' + - 'tests/**' + pull_request: + branches: + - "**" + paths: + - '**.py' + - 'pyproject.toml' + - 'poetry.lock' + - 'tests/**' + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.14' + + - name: Install uv + run: pip install uv + + - name: Cache uv dependencies + uses: actions/cache@v4 + with: + path: | + .venv + ~/.cache/uv + key: ${{ runner.os }}-uv-${{ hashFiles('uv.lock') }} + restore-keys: | + ${{ runner.os }}-uv- + + - name: Sync dependencies + run: uv sync --dev + + - name: Run tests + run: uv run pytest +