From 4918ecd3d39cd48aba835289d04fe6ff12a002ec Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sun, 1 Feb 2026 05:21:32 +0000 Subject: [PATCH] Minimal CI workflow - just checkout and run tests --- .gitea/workflows/ci.yml | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 93c53c6..4646c61 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,29 +1,18 @@ name: CI -on: - push: - branches: [main] - pull_request: - branches: [main] +on: [push, pull_request] jobs: test: runs-on: ubuntu-latest steps: - - name: Checkout code + - name: Checkout run: | git clone https://gitea.com/${{ github.repository }} ${{ github.workspace }} cd ${{ github.workspace }} git checkout ${{ github.sha }} - - name: Set up Python - run: | - which python3 || (apt-get update && apt-get install -y python3 python3-pip) - python3 --version - - name: Install dependencies - run: | - python3 -m pip install --upgrade pip - python3 -m pip install -e . - python3 -m pip install pytest - name: Run tests run: | - python3 -m pytest tests/ -v + cd ${{ github.workspace }} + pip3 install -e . pytest 2>/dev/null || pip install -e . pytest + python3 -m pytest tests/ -v 2>/dev/null || python -m pytest tests/ -v