Don't use CMAKE_INSTALL_PREFIX in tokenizers-config.cmake #384
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: pull | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }}-${{ github.event_name == 'schedule' }} | |
cancel-in-progress: true | |
jobs: | |
unittest-linux: | |
name: unittest-linux | |
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main | |
strategy: | |
fail-fast: false | |
with: | |
runner: linux.2xlarge | |
submodules: 'true' | |
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} | |
timeout: 90 | |
script: | | |
set -ex | |
cmake -DCMAKE_BUILD_TYPE=Debug test -Bbuild/test | |
cmake --build build/test -j9 --config Debug | |
pushd build/test && ctest && popd | |
# Install tokenizers | |
pip install . -v | |
pip install pytest blobfile transformers>=4.53.1 | |
# Run tests | |
pytest |