Files
local-code-assistant/.gitea/workflows/ci.yml
7000pctAUTO 40bf87d458
Some checks failed
CI / test (push) Failing after 4m43s
CI / build (push) Has been skipped
fix: Build from root directory where pyproject.toml is located
2026-01-31 16:32:56 +00:00

53 lines
1.2 KiB
YAML

name: CI
on:
push:
branches: [main]
pull_request:
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'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e local_code_assistant/[dev] pytest pytest-cov
- name: Run linting
run: ruff check local_code_assistant/
- name: Run tests
run: pytest local_code_assistant/tests/ -v --tb=short
- name: Run tests with coverage
run: pytest local_code_assistant/tests/ --cov=local_code_assistant --cov-report=term-missing
build:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Build and verify package
run: |
pip install build
python -m build
pip install dist/*.whl
local-code-assistant --help > /dev/null && echo "Package installed successfully"