30 lines
666 B
YAML
30 lines
666 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 dependencies
|
|
run: |
|
|
pip3 install --upgrade pip
|
|
pip3 install pytest ruff
|
|
pip3 install -e ".[dev]"
|
|
|
|
- name: Run tests
|
|
run: 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"
|