Enhance tokenizer compatibility with transformers v4 and v5 #414
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: Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: {} | |
| jobs: | |
| run-tests: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| strategy: | |
| matrix: | |
| python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install self | |
| working-directory: ${{github.workspace}} | |
| run: | | |
| # Since pylate makes problems otherwise: | |
| pip3 install pylate git+https://github.com/mjeensung/xtr-pytorch.git --no-deps | |
| pip3 install .[test,dev] --extra-index-url https://download.pytorch.org/whl/cpu | |
| pip3 cache purge | |
| - name: Run tests | |
| working-directory: ${{github.workspace}} | |
| run: pytest tests |