launchpad client update #324
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: LambdaLabs Validation Tests | |
| on: | |
| schedule: | |
| # Run daily at 2 AM UTC | |
| - cron: '0 2 * * *' | |
| workflow_dispatch: | |
| # Allow manual triggering | |
| pull_request: | |
| paths: | |
| - 'v1/providers/lambdalabs/**' | |
| - 'internal/validation/**' | |
| - 'v1/**' | |
| branches: [ main ] | |
| jobs: | |
| lambdalabs-validation: | |
| name: LambdaLabs Provider Validation | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Cache Go modules | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cache/go-build | |
| ~/go/pkg/mod | |
| key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
| restore-keys: | | |
| ${{ runner.os }}-go- | |
| - name: Install dependencies | |
| run: make deps | |
| - name: Run LambdaLabs validation tests | |
| env: | |
| LAMBDALABS_API_KEY: ${{ secrets.LAMBDALABS_API_KEY }} | |
| TEST_PRIVATE_KEY_BASE64: ${{ secrets.TEST_PRIVATE_KEY_BASE64 }} | |
| TEST_PUBLIC_KEY_BASE64: ${{ secrets.TEST_PUBLIC_KEY_BASE64 }} | |
| VALIDATION_TEST: true | |
| run: | | |
| cd v1/providers/lambdalabs | |
| go test -v -short=false -timeout=30m ./... | |
| - name: Upload test results | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: lambdalabs-validation-results | |
| path: | | |
| v1/providers/lambdalabs/coverage.out |