From f60b62db7e2eb6a559533154eca86fe80c3abdc2 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sat, 31 Jan 2026 21:53:42 +0000 Subject: [PATCH] Fix CI workflow - use absolute paths --- .gitea/workflows/ci.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index bf0b8d8..7b6fe43 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -10,23 +10,26 @@ jobs: test: runs-on: ubuntu-latest steps: - - run: | - python3 -m pip install --upgrade pip + - name: Test + run: | + pip install --upgrade pip pip install pytest - pip install -r requirements.txt - pytest tests/ -v + pip install -r /app/requirements.txt + pytest /app/tests/ -v lint: runs-on: ubuntu-latest steps: - - run: | + - name: Lint + run: | pip install ruff - ruff check . + ruff check /app/ build: runs-on: ubuntu-latest needs: test steps: - - run: | - pip install -r requirements.txt + - name: Build + run: | + pip install -r /app/requirements.txt python -c "from man_card import cli, man_parser, card_generator, templates, config; print('All modules import successfully')"