-
Notifications
You must be signed in to change notification settings - Fork 9
40 lines (34 loc) · 1.01 KB
/
pytest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Run pytest
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Python Setup
uses: actions/setup-python@v3
with:
python-version: 3.9
- name: Run ffmpeg
run: |
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y ffmpeg
- name: Run dependency libraries
run: |
pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 torchtext==0.15.1
pip install easydict pandas tqdm pyyaml scikit-learn ffmpeg-python ftfy regex einops fvcore gradio torchlibrosa librosa
pip install 'clip@git+https://github.com/openai/CLIP.git'
pip install 'git+https://github.com/line/lighthouse.git'
pip install pytest
pip uninstall -y numpy
pip install numpy==1.23.5
- name: Run pytest
run: pytest tests/test_models.py