From cc2375a11ec8386f6028118cc7e5e9031995c481 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sat, 31 Jan 2026 22:32:08 +0000 Subject: [PATCH] Fix CI workflow - add checkout, Python setup, and test steps --- .gitea/workflows/ci.yml | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 1d6523f..b26f93f 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -5,12 +5,23 @@ jobs: test: runs-on: ubuntu-latest steps: - - name: Checkout - run: git clone --depth 1 https://7000pct.gitea.bloupla.net/7000pctAUTO/man-card.git + - name: Checkout code + uses: actions/checkout@v4 - - name: Check pip + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Install dependencies run: | - which pip3 - pip3 --version - pip3 install click fpdf2 Pillow rich pytest pytest-cov - pip3 list | grep -E "(click|fpdf|Pillow|pytest)" + pip3 install -e ".[dev]" + + - name: Run tests + run: | + pytest tests/ -v --cov=man_card --cov-report=term-missing + + - name: Check Python + run: | + python3 --version + which python3