-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (37 loc) · 1.15 KB
/
training.model_prep_test.yaml
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
41
42
43
44
45
46
47
name: Test training.model_prep Module.
on: [pull_request]
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install -r requirements.txt --no-cache-dir
pip install pytest einops lion-pytorch
- name: Install FFmpeg
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get install -y ffmpeg
- name: Install FFmpeg (macOS)
if: startsWith(matrix.os, 'macos')
run: |
brew install ffmpeg
- name: Install FFmpeg (Windows)
if: startsWith(matrix.os, 'windows')
run: |
choco install ffmpeg
- name: Run tests
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
WANDB_TOKEN: ${{ secrets.WANDB_TOKEN }}
run: pytest -vv src/tests/test_model_prep.py