From 3a8d574a8469815f1df0884dbf57a943cf11e14a Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sat, 31 Jan 2026 22:23:00 +0000 Subject: [PATCH] Use Python 3.11 container --- .gitea/workflows/ci.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index c9a1268..4ff3afc 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -4,20 +4,15 @@ on: [push] jobs: test: runs-on: ubuntu-latest + container: python:3.11-bullseye steps: - name: Checkout run: | - rm -rf man-card + apt-get update -qq && apt-get install -y -qq git > /dev/null git clone --depth 1 https://7000pct.gitea.bloupla.net/7000pctAUTO/man-card.git - - name: Python check + - name: Test run: | - which python3 - python3 --version - - - name: Install - run: | - pip install click fpdf2 Pillow rich pytest - - - name: Run tests - run: pytest tests/ -v + pip install click fpdf2 Pillow rich pytest pytest-cov + pip install -e . + pytest tests/ -v --tb=short