From b31e113cd1d1c1367da0bba7607afe9c974353d2 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Mon, 2 Feb 2026 04:12:46 +0000 Subject: [PATCH] fix: use minimal native Gitea Actions syntax --- .gitea/workflows/ci.yml | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index f748210..185aba7 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,32 +1,21 @@ name: CI -on: - push: - branches: [main] - pull_request: - branches: [main] +on: [push, pull_request] jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 + - run: | + git clone --depth 1 https://${{ gitea.server }}/${{ gitea.repository }} . + git fetch --depth=1 origin ${{ gitea.sha }} + git checkout ${{ gitea.sha }} - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.11' - - - name: Install dependencies - run: | + - run: | python3 -m pip install --upgrade pip python3 -m pip install pytest ruff python3 -m pip install -e ".[dev]" - - name: Run tests - run: python3 -m pytest tests/ -v --tb=short + - run: python3 -m pytest tests/ -v --tb=short - - name: Run linting - run: python3 -m ruff check i18n_key_sync/ tests/ + - run: python3 -m ruff check i18n_key_sync/ tests/