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