Test Build #5297
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: Test Build | |
| on: | |
| push: | |
| branches: | |
| - "master" | |
| paths-ignore: | |
| - "docs/**" | |
| - "mkdocs.yml" | |
| pull_request: | |
| branches: | |
| - "master" | |
| workflow_dispatch: | |
| inputs: | |
| go-integration-tests: | |
| type: boolean | |
| required: true | |
| default: false | |
| description: Go integration tests | |
| env: | |
| BUILD_INCREMENT: 150 | |
| jobs: | |
| compute-version: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| version: ${{ steps.set-version.outputs.version }} | |
| steps: | |
| - id: set-version | |
| run: | | |
| echo "version=$((${{ github.run_number }} + ${{ env.BUILD_INCREMENT }}))" >> $GITHUB_OUTPUT | |
| build-artifacts: | |
| needs: [compute-version] | |
| uses: ./.github/workflows/build-artifacts.yml | |
| with: | |
| version: ${{ needs.compute-version.outputs.version }} | |
| staging: true | |
| go-integration-tests: ${{ github.event_name == 'workflow_dispatch' && inputs.go-integration-tests || github.event_name == 'push' }} | |
| upload-pre-pypi-artifacts: | |
| needs: [compute-version, build-artifacts] | |
| # Skip for PRs from forks, where AWS S3 credentials are not available | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository | |
| uses: ./.github/workflows/upload-pre-pypi-artifacts.yml | |
| with: | |
| version: ${{ needs.compute-version.outputs.version }} | |
| staging: true | |
| upload-post-pypi-artifacts: | |
| needs: [compute-version, build-artifacts] | |
| # Skip for PRs from forks, where AWS S3 credentials are not available | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository | |
| uses: ./.github/workflows/upload-post-pypi-artifacts.yml | |
| with: | |
| version: ${{ needs.compute-version.outputs.version }} | |
| is-latest-version: true | |
| staging: true | |
| docs-build: | |
| # Skip for PRs from forks since mkdocs-material-insiders is not available in forks | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v5 | |
| with: | |
| python-version: 3.11 | |
| - name: Install dstack | |
| run: | | |
| uv pip install examples/plugins/example_plugin_server | |
| uv pip install -e '.[server]' | |
| # Move these deps into an extra and install that way | |
| - name: Build | |
| run: | | |
| uv pip install pillow cairosvg | |
| sudo apt-get update && sudo apt-get install -y libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev | |
| uv pip install mkdocs-material "mkdocs-material[imaging]" mkdocs-material-extensions mkdocs-redirects mkdocs-gen-files "mkdocstrings[python]" mkdocs-render-swagger-plugin --upgrade | |
| uv pip install git+https://${{ secrets.GH_TOKEN }}@github.com/squidfunk/mkdocs-material-insiders.git | |
| uv run mkdocs build -s |