-
Notifications
You must be signed in to change notification settings - Fork 10
44 lines (37 loc) · 908 Bytes
/
pytest.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
name: Run Tests
on:
pull_request:
branches:
- main
- develop
paths:
- scraibe/**
- pyproject.toml
- requirements.txt
- test/**
workflow_dispatch:
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: 3.11
- name: Install Dependencies
run: |
sudo apt update && sudo apt upgrade
python -m pip install --upgrade pip
pip install .
sudo apt-get install libsndfile1-dev
sudo apt-get install ffmpeg
pip install pytest
- name: Run pytest
env:
HF_TOKEN : ${{ secrets.HF_TOKEN }}
run: |
pytest