Skip to content

~Sandbox

~Sandbox #195

Workflow file for this run

name: "~Sandbox"
on:
workflow_dispatch:
permissions:
contents: read # to fetch code
actions: write # to cancel previous workflows
packages: write # to upload container
jobs:
run-jobs:

Check failure on line 13 in .github/workflows/_sandbox.yaml

View workflow run for this annotation

GitHub Actions / ~Sandbox

Invalid workflow file

The workflow is not valid. .github/workflows/_sandbox.yaml (Line: 13, Col: 3): The workflow must contain at least one job with no dependencies.
needs: metadata
uses: ./.github/workflows/_test_jax.yaml
with:
JAX_IMAGE: 'ghcr.io/nvidia/jax:latest'
secrets: inherit
summary:
needs: [run-jobs]
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
GPU_ARCH: [V100, A100]
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: ${{ needs.run-jobs.outputs.ARTIFACT_NAME }}-${{ matrix.GPU_ARCH }}
- name: Write output to step summary
run: |
source outputs.env
echo "${SUMMARY}" >> $GITHUB_STEP_SUMMARY
# publish-badge:
# needs: [metadata, run-jobs]
# strategy:
# fail-fast: false
# matrix:
# GPU_ARCH: [V100, A100]
# uses: ./.github/workflows/_publish_badge.yaml
# if: (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') || github.event_name == 'workflow_dispatch'
# secrets: inherit
# with:
# ENDPOINT_FILENAME: 'jax-unit-test-status-${{ matrix.GPU_ARCH }}.json'
# PUBLISH: ${{ github.event_name == 'workflow_run' || needs.metadata.outputs.PUBLISH == 'true' }}
# SCRIPT: |
# ARTIFACTS="${{ needs.run-jobs.outputs.ARTIFACT_NAME }}-${{ matrix.GPU_ARCH }}/*"
# FAILED_TESTS=$(cat $ARTIFACTS | grep -c 'FAILED in' || true)
# PASSED_TESTS=$(cat $ARTIFACTS | grep -c 'PASSED in' || true)
# TOTAL_TESTS=$((FAILED_TESTS + PASSED_TESTS))
# if [[ $FAILED_TESTS == 0 ]]; then
# BADGE_COLOR=brightgreen
# else
# if [[ $FAILED_TESTS < $TOTAL_TESTS ]]; then
# BADGE_COLOR=yellow
# else
# BADGE_COLOR=red
# fi
# fi
# echo "LABEL='${{ matrix.GPU_ARCH }} Unit'" >> $GITHUB_OUTPUT
# echo "MESSAGE='${PASSED_TESTS}/${TOTAL_TESTS} passed'" >> $GITHUB_OUTPUT
# echo "COLOR='${BADGE_COLOR}'" >> $GITHUB_OUTPUT