Skip to content

Commit

Permalink
adding workflow for gpu ci on gha runner (NVIDIA-Merlin#585)
Browse files Browse the repository at this point in the history
* adding workflow for gpu ci on gha runner

* move to 1GPU label
  • Loading branch information
jperez999 authored Dec 21, 2022
1 parent eee0f7c commit 844b7a0
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/gpu-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: GPU CI

on:
workflow_dispatch:
push:
branches: [ main ]
tags:
- v*
pull_request:
branches: [ main ]
types: [opened, synchronize, reopened, closed]

jobs:
gpu-ci:
runs-on: 1GPU

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run tests
run: |
ref_type=${{ github.ref_type }}
branch=main
if [[ $ref_type == "tag"* ]]
then
raw=$(git branch -r --contains ${{ github.ref_name }})
branch=${raw/origin\/}
fi
cd ${{ github.workspace }}; tox -e test-gpu -- $branch

0 comments on commit 844b7a0

Please sign in to comment.