We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8354203 commit cd49553Copy full SHA for cd49553
.github/workflows/test-unit.yml
@@ -0,0 +1,25 @@
1
+name: Unit Tests
2
+
3
+on:
4
+ push:
5
+ branches: [ main, master ]
6
+ pull_request:
7
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
24
+ pip install -r tests-unit/requirements.txt
25
+ python -m pytest tests-unit
0 commit comments