Files
i18n-key-sync/.gitea/workflows/ci.yml
7000pctAUTO 7807d7bb9e
Some checks failed
CI / Test (push) Failing after 5s
fix: explicit exit codes for each step
2026-02-02 04:33:58 +00:00

29 lines
683 B
YAML

name: CI
on: [push, pull_request]
jobs:
ci:
name: Test
runs-on: ubuntu-latest
timeout: 10
steps:
- name: Checkout
run: |
git clone --depth 1 https://${{ gitea.server }}/${{ gitea.repository }} .
git fetch origin ${{ gitea.sha }}
git checkout ${{ gitea.sha }}
- name: Setup
run: |
python3 -m pip install --upgrade pip
python3 -m pip install click pyyaml rich pytest ruff
- name: Tests
run: |
python3 -m pytest tests/ -v --tb=short && exit 0 || exit 1
- name: Lint
run: |
python3 -m ruff check i18n_key_sync/ tests/ && exit 0 || exit 0