lint #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.13' | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y tesseract-ocr | |
| - name: Install core package only (no providers) | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e . | |
| - name: Verify import without provider SDKs | |
| run: | | |
| python -c "from covenance import ask_llm, Covenance, print_usage; print('Import OK')" | |
| - name: Install all dependencies | |
| run: | | |
| pip install -e ".[all,dev]" | |
| - name: Run pytest | |
| run: pytest --cov --cov-branch --cov-report=xml --junitxml=junit.xml -o junit_family=legacy | |
| env: | |
| CI: true | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Upload test results to Codecov | |
| if: ${{ !cancelled() }} | |
| uses: codecov/test-results-action@v1 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |