From dd5757090331507fe5120db4fa75a5acde2155e7 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Tue, 3 Feb 2026 06:21:21 +0000 Subject: [PATCH] Add Gitea Actions workflow: ci.yml --- .gitea/workflows/ci.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index c93efd7..5beac71 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -11,15 +11,27 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Set up Python + + - name: Set up Python 3.11 uses: actions/setup-python@v5 with: python-version: '3.11' - cache: 'pip' + + - name: Install system dependencies + run: | + apt-get update && apt-get install -y python3-pip python3-venv + + - name: Create virtual environment + run: python3 -m venv /tmp/venv + shell: bash + - name: Install dependencies run: | - python -m pip install --upgrade pip + source /tmp/venv/bin/activate + pip install --upgrade pip pip install pytest click pyyaml jsonschema tomli - pip install -e . + - name: Run tests - run: pytest -v --tb=short + run: | + source /tmp/venv/bin/activate + pytest -v --tb=short || exit 1