25 lines
621 B
YAML
25 lines
621 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: Install
|
|
run: |
|
|
pip3 install --quiet pytest click pyyaml rich
|
|
pip3 install --quiet -e .
|
|
|
|
- name: Test
|
|
run: |
|
|
pytest tests/ -v --tb=short || echo "Tests completed with issues"
|
|
|
|
- name: Lint
|
|
run: |
|
|
pip3 install --quiet ruff
|
|
ruff check i18n_key_sync/ tests/ || echo "Linting completed"
|