fix: use minimal native Gitea Actions syntax
Some checks failed
CI / test (push) Failing after 5s

This commit is contained in:
2026-02-02 04:12:46 +00:00
parent d799fdaddc
commit b31e113cd1

View File

@@ -1,32 +1,21 @@
name: CI name: CI
on: on: [push, pull_request]
push:
branches: [main]
pull_request:
branches: [main]
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - run: |
with: git clone --depth 1 https://${{ gitea.server }}/${{ gitea.repository }} .
fetch-depth: 0 git fetch --depth=1 origin ${{ gitea.sha }}
git checkout ${{ gitea.sha }}
- name: Set up Python - run: |
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip python3 -m pip install --upgrade pip
python3 -m pip install pytest ruff python3 -m pip install pytest ruff
python3 -m pip install -e ".[dev]" python3 -m pip install -e ".[dev]"
- name: Run tests - run: python3 -m pytest tests/ -v --tb=short
run: python3 -m pytest tests/ -v --tb=short
- name: Run linting - run: python3 -m ruff check i18n_key_sync/ tests/
run: python3 -m ruff check i18n_key_sync/ tests/