Bump version to 0.4.1 #24
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: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| python-version: ["3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Cache HuggingFace models | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/huggingface | |
| key: hf-models-bge-small-v1 | |
| - name: Install | |
| run: pip install -e ".[dev]" | |
| - name: Download models | |
| run: | | |
| python -c " | |
| from sentence_transformers import SentenceTransformer | |
| SentenceTransformer('BAAI/bge-small-en-v1.5') | |
| print('bge-small downloaded') | |
| " | |
| - name: Run tests | |
| run: pytest tests/ -v --tb=short |