Repository navigation
Bump model opset to 20 #38
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: Check Models | |
| on: | |
| pull_request: | |
| branches: [master] | |
| push: | |
| branches: [master] | |
| permissions: | |
| contents: read | |
| jobs: | |
| discover: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| models: ${{ steps.find.outputs.models }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - uses: astral-sh/setup-uv@v5 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Generate versions.json | |
| run: uv run dtai versions | |
| - id: find | |
| name: Discover non-skipped models | |
| run: | | |
| models=$(uv run dtai list --json-output) | |
| echo "models=$models" >> "$GITHUB_OUTPUT" | |
| echo "Will check: $models" | |
| check: | |
| needs: discover | |
| if: ${{ needs.discover.outputs.models != '[]' }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: ${{ fromJson(needs.discover.outputs.models) }} | |
| name: ${{ matrix.id }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - uses: astral-sh/setup-uv@v5 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: uv sync --group ${{ matrix.dep_group }} | |
| - name: Download checkpoints | |
| run: uv run dtai setup ${{ matrix.id }} | |
| - name: Convert to ONNX | |
| run: uv run dtai convert ${{ matrix.id }} | |
| - name: Validate output | |
| run: uv run dtai validate ${{ matrix.id }} | |
| - name: Run demo | |
| run: uv run dtai demo ${{ matrix.id }} |