fix: use GitHub Actions syntax compatible with Gitea
Some checks failed
CI / test (push) Failing after 14s

This commit is contained in:
2026-02-02 04:32:42 +00:00
parent 7a78901f55
commit 64f4f7a47a

View File

@@ -1,27 +1,32 @@
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: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
run: | uses: actions/checkout@v4
git clone https://${{ gitea.server }}/${{ gitea.repository }} . with:
git checkout ${{ gitea.sha }} fetch-depth: 0
- name: Setup - name: Set up Python
run: | uses: actions/setup-python@v5
pip3 install --upgrade pip with:
pip3 install pytest click pyyaml rich python-version: '3.11'
pip3 install -e .
- name: Tests - name: Install dependencies
run: | run: |
(pytest tests/ -v --tb=short && echo "TESTS_PASSED") || echo "TESTS_COMPLETED" python3 -m pip install --upgrade pip
python3 -m pip install pytest ruff click pyyaml rich
python3 -m pip install -e .
- name: Lint - name: Run tests
run: | run: |
(pip3 install ruff && ruff check i18n_key_sync/ tests/ && echo "LINT_PASSED") || echo "LINT_COMPLETED" python3 -m pytest tests/ -v --tb=short
- name: Done - name: Run linting
run: echo "CI workflow execution completed" run: |
python3 -m ruff check i18n_key_sync/ tests/