Skypilot skill doc #3350
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: Python Tests | |
| on: | |
| # Trigger the workflow on push or pull request, | |
| # but only for the main branch | |
| push: | |
| branches: | |
| - master | |
| - 'releases/**' | |
| pull_request: | |
| branches: | |
| - master | |
| - 'releases/**' | |
| merge_group: | |
| jobs: | |
| python-test-optimizer: | |
| strategy: | |
| matrix: | |
| python-version: ["3.9"] | |
| test-path: | |
| - "tests/test_optimizer_dryruns.py -k \"partial\"" | |
| - "tests/test_optimizer_dryruns.py -k \"not partial and not accelerator_memory and not accelerator_manufacturer\"" | |
| - "tests/test_optimizer_dryruns.py -k \"accelerator_memory or accelerator_manufacturer\"" | |
| - tests/test_optimizer_random_dag.py | |
| include: | |
| - test-path: "tests/test_optimizer_dryruns.py -k \"partial\"" | |
| test-name: "Optimizer Dryruns Part 1" | |
| - test-path: "tests/test_optimizer_dryruns.py -k \"not partial and not accelerator_memory and not accelerator_manufacturer\"" | |
| test-name: "Optimizer Dryruns Part 2" | |
| - test-path: "tests/test_optimizer_dryruns.py -k \"accelerator_memory or accelerator_manufacturer\"" | |
| test-name: "Optimizer Dryruns Part 3" | |
| - test-path: tests/test_optimizer_random_dag.py | |
| test-name: "Optimizer Random DAG Tests" | |
| runs-on: ubuntu-latest | |
| name: "Python Tests - ${{ matrix.test-name }}" | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Run Python Tests | |
| uses: ./.github/actions/run-python-tests | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| test-path: ${{ matrix.test-path }} | |
| test-name: ${{ matrix.test-name }} |