Skip to content

GitHub Action to run commands on clusters via coiled run

License

Notifications You must be signed in to change notification settings

coiled/run-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coiled Run GitHub Action

This GitHub Action runs a command on a Coiled cluster by adding the following steps to your workflow. For more details see our CLI job docs.

  - name: Coiled Login
    uses: coiled/login-action@v1
    with:
      token: ${{ secrets.COILED_API_TOKEN }}
  - name: Coiled Run
    uses: coiled/run-action@v1
    with:
      command: "echo 'Hello, Coiled!'"

Examples

Run a command on a Coiled cluster

  - name: Coiled Login
    uses: coiled/login-action@v1
    with:
      token: ${{ secrets.COILED_API_TOKEN }}
  - name: Coiled Run
    uses: coiled/run-action@v1
    with:
      command: "echo 'Hello, Coiled!'"

Use a GPU VM to train a model with Python using package sync

  - name: Coiled Login
    uses: coiled/login-action@v1
    with:
      token: ${{ secrets.COILED_API_TOKEN }}
  - name: Coiled Run
    uses: coiled/run-action@v1
    with:
      command: "python train.py"
      vm-type: "g4dn.xlarge"

Run a Python script that uses a manual software environment

  - name: Coiled Login
    uses: coiled/login-action@v1
    with:
      token: ${{ secrets.COILED_API_TOKEN }}
  - name: Coiled Run
    uses: coiled/run-action@v1
    with:
      command: "python my_script.py"
      software: "my-env"

Run a command in a Docker container

  - name: Coiled Login
    uses: coiled/login-action@v1
    with:
      token: ${{ secrets.COILED_API_TOKEN }}
  - name: Coiled Run
    uses: coiled/run-action@v1
    with:
      command: "python rapids_script.py"
      container: "nvcr.io/nvidia/rapidsai/base:23.08-cuda11.8-py3.10"

About

GitHub Action to run commands on clusters via coiled run

Resources

License

Stars

Watchers

Forks

Packages

No packages published