diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 93e3f7d..2d959ff 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,5 +1,5 @@ name: CI -on: [push] +on: [push, pull_request] jobs: test: @@ -11,15 +11,9 @@ jobs: apt-get update -qq && apt-get install -y -qq git libjpeg-dev zlib1g-dev > /dev/null git clone --depth 1 https://7000pct.gitea.bloupla.net/7000pctAUTO/man-card.git - - name: Debug - run: | - cd man-card - ls -la - cat requirements.txt - - - name: Test + - name: Install and test run: | cd man-card pip install --no-cache-dir click fpdf2 Pillow rich pytest pytest-cov - python -c "import man_card; print('Import OK')" - pytest tests/test_cli.py -v --tb=long 2>&1 | head -100 + pip install --no-cache-dir -e . + pytest tests/ -v --tb=short