fix: redact provider credentials from repr #444
Workflow file for this run
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: Test | |
| on: | |
| pull_request: | |
| branches: [ main, 'feat/*' ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12"] | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Load cached venv | |
| uses: actions/cache@v4 | |
| with: | |
| path: .venv | |
| key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }} | |
| # Always run the sync — a cache hit only warms .venv; skipping the install on | |
| # a hit lets a partial/poisoned cache (e.g. missing numpy/torch) persist | |
| # forever. `uv sync` is fast and idempotent against a warm cache. | |
| - name: Create venv and install dependencies | |
| run: | | |
| uv sync --all-extras && uv pip install mxbai-rerank | |
| - name: Run tests | |
| run: uv run pytest -v tests/providers tests/unit tests/common_types tests/test_deprecation_warnings.py |