Don't build any binaries for 3rd party deps like sentencepiece #149
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: trunk | |
on: | |
push: | |
branches: | |
- main | |
- release/* | |
tags: | |
- ciflow/trunk/* | |
pull_request: | |
paths: | |
- CMakeLists.txt | |
- .github/workflows/trunk.yml | |
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-macos: | |
name: unittest-macos | |
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main | |
strategy: | |
fail-fast: false | |
with: | |
runner: macos-14-xlarge | |
python-version: '3.11' | |
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 | |
${CONDA_RUN} pip install . -v | |
${CONDA_RUN} pip install pytest blobfile transformers>=4.53.1 | |
# Run tests | |
${CONDA_RUN} pytest |