diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index cd515da..c968e32 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -6,16 +6,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - run: git clone --depth 1 https://7000pct.gitea.bloupla.net/7000pctAUTO/man-card.git /tmp/man-card + run: git clone --depth 1 https://7000pct.gitea.bloupla.net/7000pctAUTO/man-card.git - - name: Install system deps + - name: Install run: | - sudo apt-get update -qq - sudo apt-get install -y libjpeg-dev zlib1g-dev + pip install click fpdf2 Pillow rich pytest + pip install -e . - - name: Install and test - run: | - cd /tmp/man-card - pip install --no-cache-dir click fpdf2 Pillow rich pytest pytest-cov - pip install --no-cache-dir -e . - pytest tests/ -v --tb=short + - name: Test + run: pytest tests/test_cli.py -v