henry000 commited on
Commit
f8d7600
·
1 Parent(s): 0a56d06

👷 [Add] GitHub workflows, GitHub Action for pytest

Browse files
Files changed (1) hide show
  1. .github/workflows/pytest.yaml +26 -0
.github/workflows/pytest.yaml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: YOLOv9 - Model test
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+ branches: [ main ]
8
+
9
+ jobs:
10
+ build:
11
+
12
+ runs-on: ubuntu-latest
13
+
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+ - name: Set up Python 3.8
17
+ uses: actions/setup-python@v2
18
+ with:
19
+ python-version: 3.8
20
+ - name: Install dependencies
21
+ run: |
22
+ python -m pip install --upgrade pip
23
+ pip install -r requirements.txt
24
+ - name: Test with pytest
25
+ run: |
26
+ pytest