Add hops alert CLI command for SDK parity #1548
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: mkdocs-test | |
| on: pull_request | |
| jobs: | |
| test-docs-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the API repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Checkout the docs repo | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: logicalclocks/logicalclocks.github.io | |
| ref: ${{ github.base_ref }} | |
| fetch-depth: 0 | |
| path: logicalclocks.github.io | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| activate-environment: true | |
| working-directory: logicalclocks.github.io | |
| - name: Install Python dependencies | |
| working-directory: logicalclocks.github.io | |
| run: uv sync --extra cli | |
| - name: Install Hopsworks Python API | |
| run: uv pip install ./python | |
| - name: Install docs Ubuntu dependencies | |
| run: sudo apt update && sudo apt-get install -y libxml2-dev libxslt-dev | |
| - name: Check mkdocs warnings | |
| working-directory: logicalclocks.github.io | |
| run: hopsworks-docs check | |
| - name: Cache local Maven repository | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}-maven-${{ hashFiles('java/pom.xml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-maven- | |
| - name: Set up JDK 8 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: "8" | |
| distribution: "adopt" | |
| - name: Build javadoc documentation | |
| working-directory: java | |
| run: mvn clean install javadoc:javadoc javadoc:aggregate -DskipTests -Dspark.version=3.5.5 -Dhudi.version=1.0.2 && cp -r target/site/apidocs ../logicalclocks.github.io/docs/javadoc | |
| - name: Check for broken links | |
| working-directory: logicalclocks.github.io | |
| run: hopsworks-docs linkchecker | |
| - name: Setup git for mike | |
| run: | | |
| git config --global user.name Mike | |
| git config --global user.email mike@docs.hopsworks.ai | |
| - name: Generate the docs with mike | |
| working-directory: logicalclocks.github.io | |
| run: mike deploy test-version |