feat: make SDK local-first and remove platform-only surfaces #3743
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: 'mostlyai CI' | |
| on: | |
| push: | |
| pull_request: | |
| types: [opened, reopened, synchronize, edited] | |
| jobs: | |
| pre-commit-check: | |
| if: | | |
| github.event_name == 'push' || | |
| (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) | |
| uses: ./.github/workflows/pre-commit-check.yaml | |
| secrets: inherit | |
| run-tests-cpu: | |
| if: | | |
| github.event_name == 'push' || | |
| (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) | |
| uses: ./.github/workflows/run-tests-cpu.yaml | |
| secrets: inherit | |
| run-tests-gpu: | |
| if: | | |
| ( | |
| github.event_name == 'push' || | |
| (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) | |
| ) && | |
| ( | |
| github.ref == 'refs/heads/main' || | |
| startsWith(github.ref, 'refs/tags/') || | |
| contains(github.event.head_commit.message, '[gpu]') || | |
| contains(github.event.pull_request.title, '[gpu]') | |
| ) | |
| uses: ./.github/workflows/run-tests-gpu.yaml | |
| secrets: inherit | |
| build-docker-image: | |
| if: | | |
| ( | |
| github.event_name == 'push' || | |
| (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) | |
| ) && | |
| ( | |
| github.ref == 'refs/heads/main' || | |
| startsWith(github.ref, 'refs/tags/') | |
| ) | |
| needs: [pre-commit-check, run-tests-cpu, run-tests-gpu] | |
| secrets: inherit | |
| uses: ./.github/workflows/build-docker-image.yaml |