jhj0517
commited on
Commit
·
1523bb2
1
Parent(s):
1ce60ce
Add CI workflow
Browse files- .github/workflows/ci.yml +38 -0
.github/workflows/ci.yml
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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-latest
|
| 17 |
+
strategy:
|
| 18 |
+
matrix:
|
| 19 |
+
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
| 20 |
+
|
| 21 |
+
steps:
|
| 22 |
+
- name: Clean up space for action
|
| 23 |
+
run: rm -rf /opt/hostedtoolcache
|
| 24 |
+
|
| 25 |
+
- uses: actions/checkout@v4
|
| 26 |
+
- name: Setup Python
|
| 27 |
+
uses: actions/setup-python@v5
|
| 28 |
+
with:
|
| 29 |
+
python-version: ${{ matrix.python }}
|
| 30 |
+
|
| 31 |
+
- name: Install git and ffmpeg
|
| 32 |
+
run: sudo apt-get update && sudo apt-get install -y git ffmpeg
|
| 33 |
+
|
| 34 |
+
- name: Install dependencies
|
| 35 |
+
run: pip install -r requirements.txt pytest
|
| 36 |
+
|
| 37 |
+
- name: Run test
|
| 38 |
+
run: python -m pytest -rs tests
|