Skip to content

Update GPU test workflow to include dstack init. #3

Update GPU test workflow to include dstack init.

Update GPU test workflow to include dstack init. #3

name: Run Tests with GPU
on:
push:
branches:
- '**' # Runs on push to any branch
workflow_dispatch: # Allows for manual triggering
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install and configure dstack
run: |
pip install dstack
dstack config --url https://sky.dstack.ai --project ${{ secrets.DSTACK_PROJECT }} --token ${{ secrets.DSTACK_TOKEN }}
dstack init
- name: Run tests with GPU
run: |
HF_TOKEN=${{ secrets.HF_TOKEN }} dstack apply -f tests.dstack.yml --force -y