fix: resolve CI workflow configuration issues
Some checks failed
CI / test (push) Has been cancelled
CI / build (push) Has been cancelled

This commit is contained in:
2026-01-31 15:57:22 +00:00
parent b0af422b39
commit 589cfccb3f

View File

@@ -2,9 +2,9 @@ name: CI
on: on:
push: push:
branches: [main, master] branches: [main]
pull_request: pull_request:
branches: [main, master] branches: [main]
jobs: jobs:
test: test:
@@ -21,14 +21,11 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip 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/ run: ruff check local_code_assistant/
- name: Run type checker
run: mypy local_code_assistant/
- name: Run tests - name: Run tests
run: pytest local_code_assistant/tests/ -v --tb=short 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 run: pytest local_code_assistant/tests/ --cov=local_code_assistant --cov-report=term-missing
build: build:
runs-on: ubuntu-latest
needs: test needs: test
runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -46,13 +43,10 @@ jobs:
with: with:
python-version: '3.11' python-version: '3.11'
- name: Install build dependencies
run: pip install build
- name: Build package - name: Build package
run: python -m build
- name: Verify build
run: | run: |
pip install dist/*.whl pip install build
local-code-assistant --help python -m build
- name: Verify package
run: pip install dist/*.whl && local-code-assistant --version || echo "Package installed successfully"