Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# GitHub Workflows

This directory uses a simple split:

- **Entrypoint workflows** (`push`, `pull_request`, or `workflow_dispatch`)
- **Reusable workflows** (`workflow_call`) that are referenced by entrypoints

## Entrypoints

- `ci.yaml` — main CI on `push`/`pull_request`
- `ci-gpu-manual.yaml` — manual GPU test trigger (`workflow_dispatch`)
- `release-step-1-bump.yaml` — manual release bump and GitHub release
- `release-step-2-publish.yaml` — PyPI publish, triggered by release completion or manual dispatch

## Reusable Workflows

- `ci-reusable-pre-commit.yaml`
- `ci-reusable-tests-cpu.yaml`
- `ci-reusable-tests-gpu.yaml`
- `ci-reusable-build-docker-image.yaml`
9 changes: 9 additions & 0 deletions .github/workflows/ci-gpu-manual.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: '[GPU] mostlyai Tests (Manual)'

on:
workflow_dispatch:

jobs:
run-tests-gpu:
uses: ./.github/workflows/ci-reusable-tests-gpu.yaml
secrets: inherit
22 changes: 4 additions & 18 deletions .github/workflows/workflow.yaml → .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,13 @@ jobs:
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
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/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
uses: ./.github/workflows/ci-reusable-tests-cpu.yaml
secrets: inherit
build-docker-image:
if: |
Expand All @@ -42,6 +28,6 @@ jobs:
github.ref == 'refs/heads/main' ||
startsWith(github.ref, 'refs/tags/')
)
needs: [pre-commit-check, run-tests-cpu, run-tests-gpu]
needs: [pre-commit-check, run-tests-cpu]
secrets: inherit
uses: ./.github/workflows/build-docker-image.yaml
uses: ./.github/workflows/ci-reusable-build-docker-image.yaml
Loading