From 8831b47df763f28c89a4b86ba0b4d0f4245ce716 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sat, 31 Jan 2026 22:18:13 +0000 Subject: [PATCH] Simplify CI workflow - remove apt-get --- .gitea/workflows/ci.yml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 63c2cc9..a6c27e4 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -7,24 +7,12 @@ jobs: steps: - name: Checkout code run: | - git clone https://7000pct.gitea.bloupla.net/7000pctAUTO/man-card.git /tmp/man-card - cd /tmp/man-card - git checkout main + if [ -d /tmp/man-card ]; then rm -rf /tmp/man-card; fi + git clone --depth 1 https://7000pct.gitea.bloupla.net/7000pctAUTO/man-card.git /tmp/man-card - - name: Set up Python - run: | - cd /tmp/man-card - apt-get update -qq - apt-get install -y -qq python3 python3-pip python3-venv > /dev/null 2>&1 - python3 --version - - - name: Install dependencies + - name: Install dependencies and run tests run: | cd /tmp/man-card pip install -q -e . pip install -q pytest pytest-cov - - - name: Run tests - run: | - cd /tmp/man-card pytest tests/ -v --cov=man_card --cov-report=term-missing