From a2a31277b0a75e5bf0c0ba11432b86eeec013a87 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sun, 1 Feb 2026 05:20:18 +0000 Subject: [PATCH] Rewrite workflows using native Gitea Actions shell commands instead of marketplace actions --- .gitea/workflows/ci.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 662d4dd..a6d6b10 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -10,16 +10,20 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Checkout code + run: | + mkdir -p ${{ github.repository }} + git clone https://gitea.com/${{ github.repository }} . + git checkout ${{ github.sha }} - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.11' + run: | + apt-get update + apt-get install -y python3 python3-pip + python3 -m pip install --upgrade pip - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install -e . - pip install pytest + pip3 install -e . + pip3 install pytest - name: Run tests run: | - python -m pytest tests/ -v + python3 -m pytest tests/ -v