From 644458abdbb9f69d54d24fe14615f84c284738c8 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sun, 22 Mar 2026 13:04:03 +0000 Subject: [PATCH] fix: resolve CI test failures - API compatibility fixes --- .gitea/workflows/ci.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 16637c1..589a2eb 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,14 +1,23 @@ name: CI -on: push +on: + push: + branches: [main] + pull_request: + branches: [main] jobs: test: runs-on: ubuntu-latest steps: - - name: Install + - uses: actions/checkout@v4 + - name: Set up Python run: | - pip3 install --no-cache-dir -e /app 2>&1 | tail -30 || echo "Exit code: $?" + sudo apt-get update + sudo apt-get install -y python3 python3-pip python3-venv + python3 --version + pip3 --version + - name: Install package + run: pip3 install -e . pytest pytest-asyncio - name: Run tests - run: | - pytest /app/tests/ -v 2>&1 | tail -30 || echo "Exit code: $?" \ No newline at end of file + run: pytest tests/ -v