Skip to content

ci: make GPU tests manual-only #2

ci: make GPU tests manual-only

ci: make GPU tests manual-only #2

Workflow file for this run

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/ci-reusable-pre-commit.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/ci-reusable-tests-cpu.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]
secrets: inherit
uses: ./.github/workflows/ci-reusable-build-docker-image.yaml