33 lines
669 B
YAML
33 lines
669 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python3 -m pip install --upgrade pip
|
|
python3 -m pip install pytest ruff
|
|
python3 -m pip install -e ".[dev]"
|
|
|
|
- name: Run tests
|
|
run: python3 -m pytest tests/ -v --tb=short
|
|
|
|
- name: Run linting
|
|
run: python3 -m ruff check i18n_key_sync/ tests/
|