diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 1d6523f..b26f93f 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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