From cb8dad5b33495093f99a6a96e7c05ff45a8544f5 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Mon, 2 Feb 2026 04:24:37 +0000 Subject: [PATCH] fix: install dependencies step by step --- .gitea/workflows/ci.yml | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 3a595d5..b440906 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -3,27 +3,37 @@ name: CI on: [push, pull_request] jobs: - test: + ci: runs-on: ubuntu-latest steps: - - name: Checkout + - name: Checkout code run: | - git clone https://${{ gitea.server }}/${{ gitea.repository }} . + git clone https://${{ gitea.server }}/${{ gitea.repository }} $HOME/repo + cd $HOME/repo git checkout ${{ gitea.sha }} - - name: Install dependencies + - name: Install Python run: | + python3 -V pip3 install --upgrade pip - pip3 install pytest ruff - pip3 install -e ".[dev]" + + - name: Install pytest + run: | + pip3 install pytest + pytest --version + + - name: Install project + run: | + pip3 install click pyyaml rich + pip3 install -e . + i18n-key-sync --help - name: Run tests - run: pytest tests/ -v --tb=short || true + run: | + cd $HOME/repo + pytest tests/ -v --tb=short || true - name: Run linting - run: ruff check i18n_key_sync/ tests/ || true - - - name: Summary run: | - echo "CI workflow completed" - echo "All steps executed" + pip3 install ruff + ruff check i18n_key_sync/ tests/ || true