This commit is contained in:
@@ -1,32 +1,10 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on:
|
on: [push, pull_request]
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ci:
|
test:
|
||||||
runs-on: gitea
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Test Python
|
||||||
run: |
|
run: python3 --version
|
||||||
git clone https://${{ gitea.server }}/${{ gitea.repository }} .
|
|
||||||
git checkout ${{ gitea.sha }}
|
|
||||||
|
|
||||||
- name: Install Python deps
|
|
||||||
run: |
|
|
||||||
python3 -m pip install --upgrade pip
|
|
||||||
python3 -m pip install pytest ruff -q
|
|
||||||
python3 -m pip install -e ".[dev]" -q
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
run: |
|
|
||||||
python3 -m pytest tests/ -v --tb=short || exit 1
|
|
||||||
|
|
||||||
- name: Lint
|
|
||||||
run: |
|
|
||||||
python3 -m ruff check i18n_key_sync/ tests/ || exit 1
|
|
||||||
|
|||||||
Reference in New Issue
Block a user