diff options
author | dtcabrerizo <[email protected]> | 2021-07-30 08:34:57 -0300 |
---|---|---|
committer | GitHub <[email protected]> | 2021-07-30 07:34:57 -0400 |
commit | 33a600a714474495a58fdf038d7a636c0e339c44 (patch) | |
tree | b222c2c49bffc297efdb2878cdd063f028fb93a8 /.github | |
parent | 1d20bbb4b9d83a583d4950c94829733d8d0a4267 (diff) | |
download | bazarr-33a600a714474495a58fdf038d7a636c0e339c44.tar.gz bazarr-33a600a714474495a58fdf038d7a636c0e339c44.zip |
Added settings to download only featured subtitles for LegendasTV
Diffstat (limited to '.github')
-rw-r--r-- | .github/scripts/build_test.sh | 15 | ||||
-rw-r--r-- | .github/workflows/test_bazarr_execution.yml | 49 |
2 files changed, 64 insertions, 0 deletions
diff --git a/.github/scripts/build_test.sh b/.github/scripts/build_test.sh new file mode 100644 index 000000000..4e9287fb1 --- /dev/null +++ b/.github/scripts/build_test.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +python3 "${ROOT_DIRECTORY}"/bazarr.py & +PID=$! + +sleep 30 + +if kill -s 0 $PID +then + echo "Bazarr is still running. We'll kill it..." + kill $PID + exit 0 +else + exit 1 +fi
\ No newline at end of file diff --git a/.github/workflows/test_bazarr_execution.yml b/.github/workflows/test_bazarr_execution.yml new file mode 100644 index 000000000..43aedb859 --- /dev/null +++ b/.github/workflows/test_bazarr_execution.yml @@ -0,0 +1,49 @@ +name: test_bazarr_execution +on: workflow_dispatch + +jobs: + Test: + runs-on: ubuntu-latest + env: + ROOT_DIRECTORY: . + SCRIPTS_DIRECTORY: .github/scripts + FETCH_DEPTH: 15 # Should be enough + steps: + - name: Validate branch + if: ${{ github.ref != 'refs/heads/development' }} + run: | + echo This action can only be run on development branch, not ${{ github.ref }} + exit 1 + + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: ${{ env.FETCH_DEPTH }} + ref: development + + - name: Setup NodeJS + uses: actions/setup-node@v2 + with: + node-version: "15.x" + + - name: Install UI Dependencies + run: npm install + working-directory: ${{ env.UI_DIRECTORY }} + + - name: Build UI + run: npm run build + working-directory: ${{ env.UI_DIRECTORY }} + + - name: Set up Python 3.8 + uses: actions/setup-python@v2 + with: + python-version: '3.8' + + - name: Install Python dependencies + run: | + python -m pip install --upgrade pip + pip install -r '${{ env.ROOT_DIRECTORY }}/requirements.txt' + + - name: Test Bazarr execution + run: | + bash '${{ env.SCRIPTS_DIRECTORY }}/build_test.sh' |