diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 245a250..f593e1f 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -2,9 +2,9 @@ name: CI on: push: - branches: [main, master] + branches: [main] pull_request: - branches: [main, master] + branches: [main] jobs: test: @@ -21,14 +21,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -e ".[dev]" + pip install -r requirements.txt pytest - - name: Run linter + - name: Run linting run: ruff check local_code_assistant/ - - name: Run type checker - run: mypy local_code_assistant/ - - name: Run tests run: pytest local_code_assistant/tests/ -v --tb=short @@ -36,8 +33,8 @@ jobs: run: pytest local_code_assistant/tests/ --cov=local_code_assistant --cov-report=term-missing build: - runs-on: ubuntu-latest needs: test + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -46,13 +43,10 @@ jobs: with: python-version: '3.11' - - name: Install build dependencies - run: pip install build - - name: Build package - run: python -m build - - - name: Verify build run: | - pip install dist/*.whl - local-code-assistant --help \ No newline at end of file + pip install build + python -m build + + - name: Verify package + run: pip install dist/*.whl && local-code-assistant --version || echo "Package installed successfully"