-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (51 loc) · 1.76 KB
/
test.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Run Tests
on:
- push
- pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "pip"
- uses: FedericoCarboni/setup-ffmpeg@v2
- run: sudo apt-get install sox
- name: Fetch everyvoice
run: |
git clone https://github.com/EveryVoiceTTS/EveryVoice
cd EveryVoice
git checkout ${{ github.ref_name }} || git checkout ${{ github.head_ref }} || true
git submodule update --init
cd everyvoice/model/feature_prediction/FastSpeech2_lightning
git fetch origin ${{ github.ref }}
git checkout FETCH_HEAD
- name: Install everyvoice
run: |
cd EveryVoice
CUDA_TAG=cpu pip install -r requirements.torch.txt --find-links https://download.pytorch.org/whl/torch_stable.html
pip install -e .[dev]
pip install coverage
- run: pip freeze
- run: pip list
- name: Run fs2 unit tests
run: |
cd EveryVoice/everyvoice/model/feature_prediction/FastSpeech2_lightning/
coverage run -m unittest discover everyvoice.model.feature_prediction.FastSpeech2_lightning.fs2.tests
coverage xml
- name: Plain text coverage report
run: |
cd EveryVoice/everyvoice/model/feature_prediction/FastSpeech2_lightning/
coverage report
- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: false # optional (default = false)
token: ${{ secrets.CODECOV_TOKEN }}