From 03cf8dfff3271c1882e32001ff5fc9e12e520f08 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Mon, 2 Feb 2026 04:07:11 +0000 Subject: [PATCH] fix: simplify Gitea Actions workflow for better compatibility --- .gitea/workflows/ci.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index fdce48e..be5f845 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -2,33 +2,32 @@ name: CI on: push: - branches: - - main + branches: [main] pull_request: - branches: - - main + branches: [main] jobs: test: runs-on: ubuntu-latest steps: - - name: Checkout code + - name: Checkout run: | git clone https://${{ gitea.server }}/${{ gitea.repository }} . git checkout ${{ gitea.sha }} - - name: Set up Python + - name: Setup Python run: | python3 -m pip install --upgrade pip - - name: Install dependencies + - name: Install run: | + python3 -m pip install pytest ruff python3 -m pip install -e ".[dev]" - - name: Run tests + - name: Test run: | python3 -m pytest tests/ -v --tb=short - - name: Run linting + - name: Lint run: | python3 -m ruff check i18n_key_sync/ tests/