Skip to content

Commit cd49553

Browse files
authored
Add back CI action for tests-ui (#4859)
1 parent 8354203 commit cd49553

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/test-unit.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Unit Tests
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
pull_request:
7+
branches: [ main, master ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-python@v4
15+
with:
16+
python-version: '3.10'
17+
- name: Install requirements
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
21+
pip install -r requirements.txt
22+
- name: Run Unit Tests
23+
run: |
24+
pip install -r tests-unit/requirements.txt
25+
python -m pytest tests-unit

0 commit comments

Comments
 (0)