Skip to content

chore(main): release 0.7.0 #40

chore(main): release 0.7.0

chore(main): release 0.7.0 #40

Workflow file for this run

name: Test & Coverage
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
checks: write
pull-requests: write
jobs:
test:
name: Test
if: ${{ ! startsWith(github.head_ref, 'release-please--branches--') }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: pyproject.toml
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
cache-dependency-glob: "pyproject.toml"
- name: Install dependencies
run: uv sync --dev --extra semantic-search
- name: Setup Ollama
uses: ai-action/setup-ollama@v1
- name: Cache Ollama models
uses: actions/cache@v4
with:
path: ~/.ollama
key: ${{ runner.os }}-ollama-all-minilm
- name: Pull embedding model
run: ollama pull all-minilm
- name: Verify Ollama is running
run: |
curl -s http://localhost:11434/api/tags | head -c 500
echo ""
echo "Ollama is ready with all-minilm model"
- name: Run pytest with coverage
env:
ENABLE_SEMANTIC_SEARCH: 'true'
EMBEDDING_MODEL: 'all-minilm'
EMBEDDING_DIM: '384'
run: uv run pytest -v --cov=app --cov-report=term-missing --cov-report=xml --cov-report=html --junit-xml=test-results.xml tests/
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: test-results.xml
- name: Upload coverage reports
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: |
coverage.xml
htmlcov/
- name: Surface test results
if: always()
uses: pmeier/pytest-results-action@main
with:
path: test-results.xml
summary: true
display-options: fEX
fail-on-empty: true
- name: Coverage comment
if: github.event_name == 'pull_request'
uses: py-cov-action/python-coverage-comment-action@v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MINIMUM_GREEN: 80
MINIMUM_ORANGE: 60
# Summary job
summary:
name: Test Summary
runs-on: ubuntu-latest
needs: [test]
if: ${{ always() && ! startsWith(github.head_ref, 'release-please--branches--') }}
steps:
- name: Summary
run: |
echo "## Test Summary" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "[OK] All tests completed successfully!" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Platform" >> $GITHUB_STEP_SUMMARY
echo "- [OK] Ubuntu" >> $GITHUB_STEP_SUMMARY