Use HOME directory for CI
Some checks failed
CI / test (push) Failing after 1s

This commit is contained in:
2026-01-31 22:20:39 +00:00
parent 4386db5c84
commit 1c1ea4369b

View File

@@ -1,18 +1,20 @@
name: CI
on: [push, pull_request]
on: [push]
jobs:
test:
runs-on: ubuntu-latest
container: python:3.11-slim
steps:
- name: Checkout code
- name: Checkout
run: |
git clone --depth 1 https://7000pct.gitea.bloupla.net/7000pctAUTO/man-card.git /tmp/man-card
cd $HOME
git clone https://7000pct.gitea.bloupla.net/7000pctAUTO/man-card.git
cd man-card
git checkout main
- name: Install and test
- name: Test
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
cd $HOME/man-card
pip install click fpdf2 Pillow rich python-dotenv pytest pytest-cov -q
pip install -e . -q
pytest tests/ -v