Skip to content

Commit

Permalink
Adding a new job for GPU runner
Browse files Browse the repository at this point in the history
Signed-off-by: Julio Faracco <[email protected]>
  • Loading branch information
jcfaracco committed Jan 27, 2024
1 parent 2e4b5da commit 4dbcb22
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request: {}

jobs:
build:
test_cpu:
runs-on: ubuntu-latest
environment: continuous_test
container:
Expand All @@ -32,3 +32,24 @@ jobs:
- name: Run test cases
run: |
pytest tests/
test_gpu:
runs-on: ubuntu-latest
environment: continuous_test
steps:
- name: Checkout 🛎
uses: actions/checkout@master
- name: Install dependencies 👨💻
run: npm i
- name: Build for production 🏗️
run: npm run build
- name: Setup SSH
run: |
mkdir -p ~/.ssh/
echo "${{ secrets.CLUSTER_SSH_PRIV_KEY }}" > ~/.ssh/id_rsa
echo "${{ secrets.CLUSTER_SSH_PUB_KEY }}" > ~/.ssh/id_rsa.pub
chmod 600 ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa.pub
ssh-keyscan -H ${{ secrets.CLUSTER_ADDRESS }} >> ~/.ssh/known_hosts
- name: Test SSH connection
run: |
ssh -T ${{ secrets.CLUSTER_USER }}@${{ secrets.CLUSTER_ADDRESS }}

0 comments on commit 4dbcb22

Please sign in to comment.