This commit is contained in:
@@ -1,32 +1,28 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
ci:
|
||||||
|
name: Test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout: 10
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
with:
|
git clone --depth 1 https://${{ gitea.server }}/${{ gitea.repository }} .
|
||||||
fetch-depth: 0
|
git fetch origin ${{ gitea.sha }}
|
||||||
|
git checkout ${{ gitea.sha }}
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Setup
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: '3.11'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
run: |
|
||||||
python3 -m pip install --upgrade pip
|
python3 -m pip install --upgrade pip
|
||||||
python3 -m pip install pytest ruff click pyyaml rich
|
python3 -m pip install click pyyaml rich pytest ruff
|
||||||
python3 -m pip install -e .
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Tests
|
||||||
run: |
|
run: |
|
||||||
python3 -m pytest tests/ -v --tb=short
|
python3 -m pytest tests/ -v --tb=short && exit 0 || exit 1
|
||||||
|
|
||||||
- name: Run linting
|
- name: Lint
|
||||||
run: |
|
run: |
|
||||||
python3 -m ruff check i18n_key_sync/ tests/
|
python3 -m ruff check i18n_key_sync/ tests/ && exit 0 || exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user