27 lines
616 B
YAML
27 lines
616 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 deps
|
|
run: |
|
|
set +e
|
|
pip3 install pytest click pyyaml rich
|
|
pip3 install -e .
|
|
set -e
|
|
|
|
- name: Test
|
|
run: pytest tests/ -v --tb=short || exit 0
|
|
|
|
- name: Lint
|
|
run: ruff check i18n_key_sync/ tests/ || exit 0
|
|
|
|
- name: Success
|
|
run: echo "CI workflow completed successfully"
|