23 lines
608 B
YAML
23 lines
608 B
YAML
name: CI
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
run: |
|
|
mkdir -p /tmp/man-card
|
|
cd /tmp/man-card
|
|
git init
|
|
git remote add origin https://7000pct.gitea.bloupla.net/7000pctAUTO/man-card.git
|
|
git fetch --depth 1 origin main
|
|
git checkout main
|
|
|
|
- name: Install and run tests
|
|
run: |
|
|
cd /tmp/man-card
|
|
pip install --quiet click fpdf2 Pillow rich python-dotenv pytest pytest-cov
|
|
pip install --quiet -e .
|
|
pytest tests/ -v --tb=short
|