Files
i18n-key-sync/.gitea/workflows/ci.yml
2026-02-02 04:07:11 +00:00

34 lines
676 B
YAML

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
run: |
git clone https://${{ gitea.server }}/${{ gitea.repository }} .
git checkout ${{ gitea.sha }}
- name: Setup Python
run: |
python3 -m pip install --upgrade pip
- name: Install
run: |
python3 -m pip install pytest ruff
python3 -m pip install -e ".[dev]"
- name: Test
run: |
python3 -m pytest tests/ -v --tb=short
- name: Lint
run: |
python3 -m ruff check i18n_key_sync/ tests/