From 93b17808d8efb5eadd26b9850a351c5e6a730609 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sun, 1 Feb 2026 10:08:49 +0000 Subject: [PATCH] fix: resolve CI/CD workflow issues - Changed Python version to 3.11 for consistency - Added pip caching for faster builds - Fixed pytest commands to use python -m pytest --- .gitea/workflows/ci.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 265d0c3..d7358fa 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -16,7 +16,15 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.9' + python-version: '3.11' + + - name: Cache pip packages + uses: actions/cache@v4 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + restore-keys: | + ${{ runner.os }}-pip- - name: Install dependencies run: | @@ -25,7 +33,7 @@ jobs: pip install pytest pytest-cov - name: Run tests - run: pytest tests/ -v --tb=short + run: python -m pytest tests/ -v --tb=short - name: Check code coverage - run: pytest tests/ --cov=src --cov-report=term-missing + run: python -m pytest tests/ --cov=src --cov-report=term-missing