Skip to content
Merged
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
16 changes: 11 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
name: CI

# CPU job runs automatically on every push / PR. The GPU test job is opt-in
# (manual workflow_dispatch) because the kernel parity tests require a CUDA
# device + nvcc, which GitHub-hosted runners do not provide. Trigger it from
# the Actions tab if you have a self-hosted GPU runner labelled [self-hosted, gpu].
# CPU job runs automatically on every pull request and on pushes to main. The
# push trigger is deliberately scoped to main: a branch that has a PR open is
# already covered by the `pull_request` event, and listening on both events for
# every branch runs the whole matrix twice per push. To test a branch before
# opening a PR, run the workflow from the Actions tab (workflow_dispatch).
#
# The GPU test job is opt-in (manual workflow_dispatch) because the kernel
# parity tests require a CUDA device + nvcc, which GitHub-hosted runners do not
# provide. Trigger it from the Actions tab if you have a self-hosted GPU runner
# labelled [self-hosted, gpu].

on:
push:
branches: ["**"]
branches: ["main"]
pull_request:
workflow_dispatch:
inputs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Release
# git tag v0.2.1.dev1 && git push origin v0.2.1.dev1 -> build + TestPyPI only
# git tag v0.2.1 && git push origin v0.2.1 -> build + TestPyPI + PyPI
#
# `ci.yml` intentionally runs on branch pushes and pull requests, not tag pushes.
# `ci.yml` intentionally runs on pull requests and pushes to main, not tag pushes.
# This workflow therefore carries installed-wheel CPU and Transformers Trainer
# gates. Every gate tests the artifact built in `build`, and every publish job
# downloads that same artifact.
Expand Down
Loading