Fix CI workflow - add checkout, Python setup, and test steps
Some checks failed
CI / test (push) Failing after 10s

This commit is contained in:
2026-01-31 22:32:08 +00:00
parent cd81b56e16
commit cc2375a11e

View File

@@ -5,12 +5,23 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
run: git clone --depth 1 https://7000pct.gitea.bloupla.net/7000pctAUTO/man-card.git
- name: Checkout code
uses: actions/checkout@v4
- name: Check pip
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
which pip3
pip3 --version
pip3 install click fpdf2 Pillow rich pytest pytest-cov
pip3 list | grep -E "(click|fpdf|Pillow|pytest)"
pip3 install -e ".[dev]"
- name: Run tests
run: |
pytest tests/ -v --cov=man_card --cov-report=term-missing
- name: Check Python
run: |
python3 --version
which python3