feat: DIAL 1.42 #1449
Workflow file for this run
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: PR workflow | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| run-notebooks: | |
| name: Cookbook notebooks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| submodules: true | |
| - uses: isbang/compose-action@4894d2492015c1774ee5a13a95b1072093087ec3 # v2.5.0 | |
| with: | |
| cwd: "./dial-cookbook/ci" | |
| up-flags: "--abort-on-container-exit --exit-code-from test --timeout 300" | |
| run-quickstart-model: | |
| name: Quickstart model | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: isbang/compose-action@4894d2492015c1774ee5a13a95b1072093087ec3 # v2.5.0 | |
| name: Run quickstart model example | |
| with: | |
| cwd: "./dial-docker-compose/ci/model" | |
| up-flags: "--abort-on-container-exit --exit-code-from test --timeout 300" | |
| run-quickstart-application: | |
| name: Quickstart application | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: isbang/compose-action@4894d2492015c1774ee5a13a95b1072093087ec3 # v2.5.0 | |
| with: | |
| cwd: "./dial-docker-compose/ci/application" | |
| up-flags: "--abort-on-container-exit --exit-code-from test --timeout 300" | |
| run-quickstart-addon: | |
| name: Quickstart addon | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: isbang/compose-action@4894d2492015c1774ee5a13a95b1072093087ec3 # v2.5.0 | |
| with: | |
| cwd: "./dial-docker-compose/ci/addon" | |
| up-flags: "--abort-on-container-exit --exit-code-from test --timeout 300" | |
| run-quickstart-self-hosted-model: | |
| name: Quickstart self-hosted model | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Docker Compose pull | |
| shell: bash | |
| run: | | |
| cd ./dial-docker-compose/ci/ollama | |
| docker compose pull --quiet | |
| - name: Docker Compose up | |
| shell: bash | |
| run: | | |
| cd ./dial-docker-compose/ci/ollama | |
| docker compose up --abort-on-container-exit --exit-code-from test --timeout 300 | |
| build: | |
| needs: | |
| - run-notebooks | |
| - run-quickstart-model | |
| - run-quickstart-application | |
| - run-quickstart-addon | |
| - run-quickstart-self-hosted-model | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: "3.11" | |
| - name: Install npm dependencies | |
| run: npm ci | |
| - name: Install docusaurus | |
| run: npm install --global docusaurus-init | |
| - name: Install quarto | |
| run: pip install "quarto-cli>=1.4,<2.0" | |
| - name: Build website | |
| run: npm run build |