ci: checkout by sha #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Tests | |
on: | |
- push | |
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 | |
- name: install sox | |
run: | | |
# sudo apt-get install libasound2-plugins libasound2-python libsox-fmt-all | |
sudo apt-get install sox | |
- name: Fetch everyvoice | |
run: | | |
git clone https://github.com/EveryVoiceTTS/EveryVoice | |
cd EveryVoice | |
git submodule update --init | |
cd everyvoice/model/feature_prediction/FastSpeech2_lightning | |
git checkout ${{ github.sha }} | |
- 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 unit tests related to fs2 | |
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 }} |