diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index b950b3e..3dfd06c 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -6,13 +6,13 @@ jobs: test: runs-on: ubuntu-latest steps: - - name: Checkout + - name: Setup run: | - rm -rf * .gitignore 2>/dev/null || true - git init - git remote add origin https://gitea.com/7000pctAUTO/json-to-openapi - git fetch - git checkout main + if [ ! -f setup.py ]; then + git clone https://gitea.com/7000pctAUTO/json-to-openapi /tmp/repo + cp -r /tmp/repo/* . + cp -r /tmp/repo/.* . 2>/dev/null || true + fi - name: Install run: | python3 -m ensurepip --upgrade 2>/dev/null || true