Evaluation Jobs Tests #1
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
| # Copyright (c) Microsoft. All rights reserved | |
| name: Evaluation Jobs Tests | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| branch: | |
| description: 'Branch to run on' | |
| required: false | |
| default: '' | |
| permissions: | |
| contents: read | |
| jobs: | |
| compute-test: | |
| runs-on: ubuntu-latest-8-cores | |
| steps: | |
| - name: Display system info | |
| run: | | |
| echo "=== CPU Info ===" | |
| nproc | |
| lscpu | grep -E '^(CPU\(s\)|Model name|CPU MHz)' | |
| echo "" | |
| echo "=== Memory Info ===" | |
| free -h | |
| echo "" | |
| echo "=== Disk Info ===" | |
| df -h / | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python | |
| run: uv python install 3.12 | |
| - name: Run test script | |
| run: | | |
| uv run --with "eval-recipes @ git+https://github.com/microsoft/eval-recipes@v0.0.29" python -c " | |
| import time | |
| import eval_recipes | |
| print(f'Successfully imported eval_recipes version: {eval_recipes.__version__}') | |
| print('Sleeping for 3 seconds...') | |
| time.sleep(3) | |
| print('Done!') | |
| " |