mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-06 05:01:10 -07:00
Py3.8 (#1659)
* Add Python3.8 and CI Tests * Force testing of video in case ffmpeg not working
This commit is contained in:
parent
70ab7d3d61
commit
5cd449632f
3 changed files with 8 additions and 41 deletions
|
@ -21,44 +21,13 @@ jobs:
|
||||||
python.version: '3.6'
|
python.version: '3.6'
|
||||||
Python37:
|
Python37:
|
||||||
python.version: '3.7'
|
python.version: '3.7'
|
||||||
maxParallel: 4
|
Python38:
|
||||||
|
python.version: '3.8'
|
||||||
|
maxParallel: 5
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
#- script: |
|
- script: sudo apt-get install ffmpeg
|
||||||
# Make sure all packages are pulled from latest
|
displayName: 'Install ffmpeg'
|
||||||
#sudo apt-get update
|
|
||||||
|
|
||||||
# Fail out if any setups fail
|
|
||||||
#set -e
|
|
||||||
|
|
||||||
# Delete old Pythons
|
|
||||||
#rm -rf $AGENT_TOOLSDIRECTORY/Python/2.7.16
|
|
||||||
#rm -rf $AGENT_TOOLSDIRECTORY/Python/3.5.7
|
|
||||||
#rm -rf $AGENT_TOOLSDIRECTORY/Python/3.7.3
|
|
||||||
|
|
||||||
# Download new Pythons
|
|
||||||
#azcopy --recursive \
|
|
||||||
#--source https://vstsagenttools.blob.core.windows.net/tools/hostedtoolcache/linux/Python/2.7.15 \
|
|
||||||
#--destination $AGENT_TOOLSDIRECTORY/Python/2.7.15
|
|
||||||
|
|
||||||
#azcopy --recursive \
|
|
||||||
#--source https://vstsagenttools.blob.core.windows.net/tools/hostedtoolcache/linux/Python/3.5.5 \
|
|
||||||
#--destination $AGENT_TOOLSDIRECTORY/Python/3.5.5
|
|
||||||
|
|
||||||
#azcopy --recursive \
|
|
||||||
#--source https://vstsagenttools.blob.core.windows.net/tools/hostedtoolcache/linux/Python/3.7.2 \
|
|
||||||
#--destination $AGENT_TOOLSDIRECTORY/Python/3.7.2
|
|
||||||
|
|
||||||
# Install new Pythons
|
|
||||||
#original_directory=$PWD
|
|
||||||
#setups=$(find $AGENT_TOOLSDIRECTORY/Python -name setup.sh)
|
|
||||||
#for setup in $setups; do
|
|
||||||
#chmod +x $setup;
|
|
||||||
#cd $(dirname $setup);
|
|
||||||
#./$(basename $setup);
|
|
||||||
#cd $original_directory;
|
|
||||||
#done;
|
|
||||||
#displayName: 'Workaround: update apt and roll back Python versions'
|
|
||||||
|
|
||||||
- task: UsePythonVersion@0
|
- task: UsePythonVersion@0
|
||||||
inputs:
|
inputs:
|
||||||
|
@ -68,9 +37,6 @@ jobs:
|
||||||
- script: python -m pip install --upgrade pip
|
- script: python -m pip install --upgrade pip
|
||||||
displayName: 'Install dependencies'
|
displayName: 'Install dependencies'
|
||||||
|
|
||||||
- script: sudo apt-get install ffmpeg
|
|
||||||
displayName: 'Install ffmpeg'
|
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
pip install pytest
|
pip install pytest
|
||||||
pytest tests --doctest-modules --junitxml=junit/test-results.xml
|
pytest tests --doctest-modules --junitxml=junit/test-results.xml
|
||||||
|
|
1
eol.py
1
eol.py
|
@ -28,6 +28,7 @@ def date(string, fmt='%Y-%m-%d'):
|
||||||
# https://devguide.python.org/
|
# https://devguide.python.org/
|
||||||
# https://devguide.python.org/devcycle/#devcycle
|
# https://devguide.python.org/devcycle/#devcycle
|
||||||
PYTHON_EOL = {
|
PYTHON_EOL = {
|
||||||
|
(3, 8): date('2024-10-14'),
|
||||||
(3, 7): date('2023-06-27'),
|
(3, 7): date('2023-06-27'),
|
||||||
(3, 6): date('2021-12-23'),
|
(3, 6): date('2021-12-23'),
|
||||||
(3, 5): date('2020-09-13'),
|
(3, 5): date('2020-09-13'),
|
||||||
|
|
|
@ -11,4 +11,4 @@ from core import transcoder
|
||||||
|
|
||||||
|
|
||||||
def test_transcoder_check():
|
def test_transcoder_check():
|
||||||
assert transcoder.is_video_good(core.TEST_FILE, 0) is True
|
assert transcoder.is_video_good(core.TEST_FILE, 1) is True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue