diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index a6c27e4..af57176 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -5,14 +5,28 @@ jobs: test: runs-on: ubuntu-latest steps: + - name: Debug environment + run: | + echo "Python version:" + python3 --version 2>&1 || echo "python3 not found" + echo "pip version:" + pip3 --version 2>&1 || echo "pip3 not found" + echo "git version:" + git --version 2>&1 || echo "git not found" + echo "Working directory:" + pwd + echo "Files:" + ls -la + - name: Checkout code run: | 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 + git clone --depth 1 https://7000pct.gitea.bloupla.net/7000pctAUTO/man-card.git /tmp/man-card 2>&1 + ls -la /tmp/man-card - - name: Install dependencies and run tests + - name: Install and test run: | cd /tmp/man-card - pip install -q -e . - pip install -q pytest pytest-cov - pytest tests/ -v --cov=man_card --cov-report=term-missing + pip3 install -e . pytest pytest-cov 2>&1 + pip3 list | grep -E "(click|fpdf|pytest)" + pytest tests/ -v --cov=man_card 2>&1