From 86b3d50caf7006245b95312f8aba23729cfa435e Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sat, 31 Jan 2026 22:04:10 +0000 Subject: [PATCH] CI workflow with error handling --- .gitea/workflows/ci.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 743ae53..065cdd6 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,19 +1,26 @@ name: CI + on: [push, pull_request] jobs: test: runs-on: ubuntu-latest steps: + - name: Checkout + run: | + pwd + ls -la + - name: Setup Python run: | python3 -m pip install --upgrade pip - python3 --version + python3 -c "import sys; print(f'Python {sys.version}')" - name: Install dependencies run: | - pip3 install -r requirements.txt - pip3 install pytest + pip3 install -r requirements.txt 2>&1 || pip install -r requirements.txt 2>&1 + pip3 install pytest 2>&1 || pip install pytest 2>&1 - name: Run tests - run: pytest3 tests/ -v \ No newline at end of file + run: | + pytest3 tests/ -v 2>&1 || pytest tests/ -v 2>&1 \ No newline at end of file