Fix tests, improve prompts #684
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 | |
| jobs: | |
| test: | |
| name: Run tests | |
| runs-on: macos-latest | |
| env: | |
| # Disable native CPU detection to avoid i8mm instruction issues on GitHub runners | |
| NODE_LLAMA_CPP_CMAKE_OPTION_GGML_NATIVE: "OFF" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Cache test model | |
| id: cache-model | |
| uses: actions/cache@v4 | |
| with: | |
| path: /Users/runner/.humanifyjs/models/ | |
| key: models-phi | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: "npm" | |
| - run: npm install --ci | |
| - run: npm run build | |
| - name: Build node-llama-cpp with correct CPU options | |
| run: npx node-llama-cpp source download --gpu false | |
| - run: npm run download-ci-model | |
| - run: npm run lint | |
| - run: npm test |