From 8a82839fe388655eba9a582a0b9b0013cb41866e Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sun, 22 Mar 2026 13:07:18 +0000 Subject: [PATCH] Fix CI workflow: remove external checkout action, use auto-checkout, use python3 -m pytest --- .gitea/workflows/ci.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 589a2eb..b274b0c 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -2,22 +2,21 @@ name: CI on: push: - branches: [main] + branches: [ main ] pull_request: - branches: [main] + branches: [ main ] jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - name: Set up Python run: | - sudo apt-get update - sudo apt-get install -y python3 python3-pip python3-venv + apt-get update + apt-get install -y python3 python3-pip python3-venv python3 --version pip3 --version - name: Install package run: pip3 install -e . pytest pytest-asyncio - name: Run tests - run: pytest tests/ -v + run: python3 -m pytest tests/ -v \ No newline at end of file