jhj0517 commited on
Commit
e3dbb92
·
1 Parent(s): fd9c9b0

Add CI action

Browse files
Files changed (1) hide show
  1. .github/workflows/ci.yml +35 -0
.github/workflows/ci.yml ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: CI
2
+
3
+ on:
4
+ workflow_dispatch:
5
+
6
+ push:
7
+ branches:
8
+ - master
9
+ pull_request:
10
+ branches:
11
+ - master
12
+
13
+ jobs:
14
+ build:
15
+
16
+ runs-on: ubuntu-20.04
17
+ strategy:
18
+ matrix:
19
+ python: ["3.11"]
20
+
21
+ steps:
22
+ - uses: actions/checkout@v4
23
+ - name: Setup Python
24
+ uses: actions/setup-python@v5
25
+ with:
26
+ python-version: ${{ matrix.python }}
27
+
28
+ - name: Install git and ffmpeg
29
+ run: sudo apt-get update && sudo apt-get install -y git ffmpeg
30
+
31
+ - name: Install dependencies
32
+ run: pip install -r requirements.txt pytest
33
+
34
+ - name: Run test
35
+ run: python -m pytest tests