fix: install dependencies step by step
Some checks failed
CI / ci (push) Failing after 9s

This commit is contained in:
2026-02-02 04:24:37 +00:00
parent ba88d0900a
commit cb8dad5b33

View File

@@ -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