From 1c1ea4369b31077f7e8f0bf889f3b4bc7146fb68 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sat, 31 Jan 2026 22:20:39 +0000 Subject: [PATCH] Use HOME directory for CI --- .gitea/workflows/ci.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 3b019c5..c87327f 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,18 +1,20 @@ name: CI -on: [push, pull_request] +on: [push] jobs: test: runs-on: ubuntu-latest - container: python:3.11-slim steps: - - name: Checkout code + - name: Checkout run: | - git clone --depth 1 https://7000pct.gitea.bloupla.net/7000pctAUTO/man-card.git /tmp/man-card + cd $HOME + git clone https://7000pct.gitea.bloupla.net/7000pctAUTO/man-card.git + cd man-card + git checkout main - - name: Install and test + - name: Test run: | - cd /tmp/man-card - pip install --quiet click fpdf2 Pillow rich python-dotenv pytest pytest-cov - pip install --quiet -e . - pytest tests/ -v --tb=short + cd $HOME/man-card + pip install click fpdf2 Pillow rich python-dotenv pytest pytest-cov -q + pip install -e . -q + pytest tests/ -v