26 lines
691 B
YAML
26 lines
691 B
YAML
name: CI
|
|
on: [push]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
container: python:3.11-slim
|
|
steps:
|
|
- name: Checkout
|
|
run: |
|
|
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
|
|
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
|