From fd009090ad8872f08626314416072e59ca8a3218 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sat, 31 Jan 2026 22:16:53 +0000 Subject: [PATCH] Fix CI workflow - add checkout, Python setup, deps, and tests --- .gitea/workflows/ci.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 4408bae..8c20f0a 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -5,13 +5,18 @@ jobs: test: runs-on: ubuntu-latest steps: - - name: Check Python - run: | - python3 --version - which python3 + - name: Checkout code + uses: actions/checkout@v4 - - name: List files + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Install dependencies run: | - ls -la - echo "---" - ls -d */ \ No newline at end of file + pip install -e . + pip install pytest pytest-cov + + - name: Run tests + run: pytest tests/ -v --cov=man_card --cov-report=term-missing