From 3d88504b6917394e0a65290e2837a9c59f6493a1 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sun, 1 Feb 2026 05:25:21 +0000 Subject: [PATCH] Check if already cloned --- .gitea/workflows/ci.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index a72ce54..715e42c 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -7,11 +7,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - run: git clone https://gitea.com/7000pctAUTO/json-to-openapi . - - name: Install pip and deps run: | - python3 -m ensurepip || true - python3 -m pip install --upgrade pip setuptools wheel + if [ ! -f setup.py ]; then + git clone https://gitea.com/7000pctAUTO/json-to-openapi . + fi + - name: Install + run: | + python3 -m ensurepip --upgrade 2>/dev/null || true + python3 -m pip install --upgrade pip python3 -m pip install -e . python3 -m pip install pytest - name: Test