fix: resolve Gitea Actions CI/CD workflow configuration
Some checks failed
CI / test (push) Failing after 2s

This commit is contained in:
2026-02-02 04:04:42 +00:00
parent b5e306dd13
commit 2e0c40cbc8

View File

@@ -2,24 +2,30 @@ name: CI
on:
push:
branches: [main]
branches:
- main
pull_request:
branches: [main]
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
- name: Checkout code
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
mkdir -p $HOME/.cache/pip
git clone https://github.com/${{ gitea.repository }} $HOME/repo
cd $HOME/repo
git checkout ${{ gitea.sha }}
- name: Set up Python
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -e ".[dev]"
- name: Run tests
run: pytest tests/ -v
- name: Run linter
run: ruff check .
run: python3 -m pytest tests/ -v --tb=short
- name: Run linting
run: python3 -m ruff check i18n_key_sync/ tests/