Skip to content

Commit

Permalink
Add unit test workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
lintian-a committed Jul 31, 2024
1 parent 067d3ff commit f87f9db
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/gpu-test-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: gpu-tests

on:
pull_request:
push:
branches: [dev, main]

jobs:
test-linux:
runs-on: [self-hosted, linux]
strategy:
max-parallel: 5

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install -e .
- name: fast test with unittest
run: |
python -m unittest -k CPU
- name: GPU test with unittest
run: |
python -m unittest discover

0 comments on commit f87f9db

Please sign in to comment.