Daily test #1683
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: Daily test | |
on: | |
schedule: | |
- cron: "0 8,18 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.7 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Test with pytest | |
run: | | |
pip install pytest | |
tries=0 | |
until [ "$tries" -ge 5 ] | |
do | |
pytest custom_components/svt_play/video_url_fetch/live_test.py && break | |
exit_code=$? | |
tries=$((tries+1)) | |
sleep 60 | |
done | |
exit $exit_code |