diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index fdce48e..be5f845 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -2,33 +2,32 @@ name: CI on: push: - branches: - - main + branches: [main] pull_request: - branches: - - main + branches: [main] jobs: test: runs-on: ubuntu-latest steps: - - name: Checkout code + - name: Checkout run: | git clone https://${{ gitea.server }}/${{ gitea.repository }} . git checkout ${{ gitea.sha }} - - name: Set up Python + - name: Setup Python run: | python3 -m pip install --upgrade pip - - name: Install dependencies + - name: Install run: | + python3 -m pip install pytest ruff python3 -m pip install -e ".[dev]" - - name: Run tests + - name: Test run: | python3 -m pytest tests/ -v --tb=short - - name: Run linting + - name: Lint run: | python3 -m ruff check i18n_key_sync/ tests/