22 lines
590 B
YAML
22 lines
590 B
YAML
name: CI
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
run: git clone --depth 1 https://7000pct.gitea.bloupla.net/7000pctAUTO/man-card.git /tmp/man-card
|
|
|
|
- name: Install system deps
|
|
run: |
|
|
sudo apt-get update -qq
|
|
sudo apt-get install -y libjpeg-dev zlib1g-dev
|
|
|
|
- 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
|