30 lines
641 B
YAML
30 lines
641 B
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: gitea
|
|
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 dependencies
|
|
run: |
|
|
python3 -m pip install pytest ruff
|
|
python3 -m pip install -e ".[dev]"
|
|
|
|
- name: Run tests
|
|
run: |
|
|
python3 -m pytest tests/ -v --tb=short
|
|
|
|
- name: Lint
|
|
run: |
|
|
python3 -m ruff check i18n_key_sync/ tests/
|