chore: Bump version. #763
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: | |
| pull_request: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - sieves/** | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.12"] | |
| steps: | |
| - name: Maximize build space | |
| shell: bash | |
| run: | | |
| sudo rm -rf /usr/share/dotnet \ | |
| /usr/local/lib/android \ | |
| /opt/ghc \ | |
| /opt/hostedtoolcache/CodeQL | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install tesseract-ocr | |
| - name: Install Python dependencies | |
| run: | | |
| uv venv .venv --python 3.12 --clear | |
| uv build | |
| source .venv/bin/activate | |
| uv pip install ./dist/sieves-*.whl | |
| # Optional dependencies need to be installed in separate command. | |
| uv pip install 'sieves[ingestion,distill,test]' | |
| - name: Build docs | |
| run: | | |
| source .venv/bin/activate | |
| mkdocs build | |
| - name: Stage tests out-of-tree | |
| run: | | |
| mkdir -p "$RUNNER_TEMP/sieves-tests" | |
| rsync -a --delete sieves/tests/ "$RUNNER_TEMP/sieves-tests/" | |
| - name: Run tests | |
| working-directory: ${{ runner.temp }}/sieves-tests | |
| env: | |
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | |
| OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }} | |
| run: | | |
| source $GITHUB_WORKSPACE/.venv/bin/activate | |
| pytest -x --cov=sieves --cov-report=xml:$GITHUB_WORKSPACE/coverage.xml -m "not slow" -c "$GITHUB_WORKSPACE/pyproject.toml" | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: coverage.xml |