33 lines
788 B
YAML
33 lines
788 B
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
run: |
|
|
git clone https://${{ gitea.server }}/${{ gitea.repository }} .
|
|
git checkout ${{ gitea.sha }}
|
|
|
|
- name: Verify structure
|
|
run: |
|
|
ls -la
|
|
ls -la i18n_key_sync/
|
|
ls -la tests/
|
|
|
|
- name: Install deps
|
|
run: |
|
|
python3 -m pip install --upgrade pip -q
|
|
python3 -m pip install pytest ruff -q
|
|
|
|
- name: Quick test
|
|
run: |
|
|
python3 -c "import i18n_key_sync; print('Import OK')"
|
|
python3 -c "from i18n_key_sync.cli import main; print('CLI OK')"
|
|
|
|
- name: Run pytest
|
|
run: |
|
|
python3 -m pytest tests/ -v --tb=short 2>&1 | head -100
|