fix: 🐛 explicitly cast step report in wandb logs to int #2210
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 | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| permissions: | |
| id-token: write | |
| contents: read | |
| jobs: | |
| start-runner: | |
| name: Start self-hosted EC2 runner | |
| runs-on: ubuntu-latest | |
| if: ${{ always() }} | |
| outputs: | |
| label: ${{ steps.start-ec2-runner.outputs.label }} | |
| ec2-instance-id: ${{ steps.start-ec2-runner.outputs.ec2-instance-id }} | |
| steps: | |
| - name: Configure AWS credentials | |
| uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| aws-region: us-east-1 | |
| role-session-name: h2o-llmstudio-enterprise-ec2 | |
| role-to-assume: arn:aws:iam::870498644798:role/GitHub-OIDC-Role | |
| - name: Start EC2 runner | |
| id: start-ec2-runner | |
| uses: machulav/ec2-github-runner@v2.3.8 | |
| with: | |
| mode: start | |
| github-token: ${{ secrets.GH_RUNNER_PAT }} | |
| ec2-image-id: ${{ secrets.GH_RUNNER_EC2_IMAGE_ID }} | |
| ec2-instance-type: ${{ secrets.GH_RUNNER_EC2_INSTANCE_TYPE }} | |
| subnet-id: ${{ secrets.GH_RUNNER_SUBNET_ID }} | |
| security-group-id: ${{ secrets.GH_RUNNER_SECURITY_GROUP_ID }} | |
| aws-resource-tags: > | |
| [ | |
| {"Key": "h2o/gitHub-repository", "Value": "${{ github.repository }}"}, | |
| {"Key": "h2o/owner", "Value": "pascal.pfeiffer@h2o.ai"}, | |
| {"Key": "h2o/environment", "Value": "dev"}, | |
| {"Key": "h2o/scheduling", "Value": "self-managed"}, | |
| {"Key": "h2o/github-workflow", "Value": "${{ github.workflow }}"} | |
| ] | |
| test: | |
| needs: start-runner | |
| runs-on: ${{ needs.start-runner.outputs.label }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| version: "0.7.20" | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10.11" | |
| - run: nvidia-smi | |
| - run: make setup-dev | |
| - run: make test | |
| # Post-Action Cleanup | |
| - name: Clean workspace after action | |
| if: ${{ always() }} | |
| run: | | |
| rm -rf ${{ github.workspace }}/* | |
| stop-runner: | |
| name: Stop self-hosted EC2 runner | |
| needs: [start-runner, test] | |
| if: ${{ always() }} # Ensures runner is stopped even if tests fail or are cancelled | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Configure AWS credentials for EC2 Runner Management | |
| uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| aws-region: us-east-1 | |
| role-session-name: h2o-llmstudio-enterprise-ec2 | |
| role-to-assume: arn:aws:iam::870498644798:role/GitHub-OIDC-Role | |
| - name: Stop EC2 runner | |
| uses: machulav/ec2-github-runner@v2.3.8 | |
| with: | |
| mode: stop | |
| github-token: ${{ secrets.GH_RUNNER_PAT }} | |
| label: ${{ needs.start-runner.outputs.label }} | |
| ec2-instance-id: ${{ needs.start-runner.outputs.ec2-instance-id }} |