diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 89bc93a..b6ece2d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -10,6 +10,12 @@ jobs: test: runs-on: shell steps: + - name: Checkout code from Gitea + run: | + git clone --depth 1 http://localhost:3000/pzhang_zywl/document_analyzer.git . + git fetch origin ${{ github.sha }} + git checkout ${{ github.sha }} + - name: Install dependencies run: pip install -r requirements.txt @@ -18,10 +24,6 @@ jobs: - name: Create issue on failure if: failure() + shell: cmd run: | - python scripts/create_failure_issue.py \ - --sha "${{ github.sha }}" \ - --branch "${{ github.ref_name }}" \ - --run "${{ github.run_number }}" \ - --message "${{ github.event.head_commit.message }}" \ - --api-token "${{ secrets.document_analyzer }}" + python scripts/create_failure_issue.py --sha "${{ github.sha }}" --branch "${{ github.ref_name }}" --run "${{ github.run_number }}" --message "${{ github.event.head_commit.message }}" --api-token "${{ secrets.document_analyzer }}"