Skip to content

Commit

Permalink
changing to beta, removing bad test stuff for now
Browse files Browse the repository at this point in the history
  • Loading branch information
cdgriffith committed Oct 2, 2021
1 parent 9bc8906 commit 6e6cd95
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 35 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,28 +31,28 @@ jobs:
with:
python-version: 3.8

- uses: actions/cache@v2
id: ffmpeg-cache
with:
path: /opt/ff/
key: ${{ runner.os }}-ff

- name: Download FFmpeg
if: steps.ffmpeg-cache.outputs.cache-hit != 'true'
run: |
wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
mkdir -p /opt/ff
tar --strip-components=1 -xJvf ffmpeg-release-amd64-static.tar.xz -C /opt/ff
- name: Link FFmpeg to usr/bin
run: |
sudo ln -s /opt/ff/ffmpeg /usr/bin/ffmpeg
sudo ln -s /opt/ff/ffprobe /usr/bin/ffprobe
- uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-test.txt') }}
# - uses: actions/cache@v2
# id: ffmpeg-cache
# with:
# path: /opt/ff/
# key: ${{ runner.os }}-ff
#
# - name: Download FFmpeg
# if: steps.ffmpeg-cache.outputs.cache-hit != 'true'
# run: |
# wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
# mkdir -p /opt/ff
# tar --strip-components=1 -xJvf ffmpeg-release-amd64-static.tar.xz -C /opt/ff
#
# - name: Link FFmpeg to usr/bin
# run: |
# sudo ln -s /opt/ff/ffmpeg /usr/bin/ffmpeg
# sudo ln -s /opt/ff/ffprobe /usr/bin/ffprobe
#
# - uses: actions/cache@v2
# with:
# path: ${{ env.pythonLocation }}
# key: ${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-test.txt') }}

- name: Install requirements
run: |
Expand Down
2 changes: 1 addition & 1 deletion fastflix/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__version__ = "4.5.0"
__version__ = "4.5.0b0"
__author__ = "Chris Griffith"
24 changes: 12 additions & 12 deletions tests/test_flix.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
fake_app.fastflix.config = Config()


def test_parse():
fake_app.fastflix.current_video = Video(
source=Path("tests", "media", "Beverly Hills Duck Pond - HDR10plus - Jessica Payne.mp4")
)
parse(fake_app)
assert fake_app.fastflix.current_video.streams.video[0].codec_name == "hevc"
assert fake_app.fastflix.current_video.streams.video[0].coded_width == 1920
assert fake_app.fastflix.current_video.streams.video[0].coded_height == 1088
assert fake_app.fastflix.current_video.streams.video[0].r_frame_rate == "30/1"
assert fake_app.fastflix.current_video.streams.audio[0].codec_name == "aac"
parse_hdr_details(fake_app)
assert len(fake_app.fastflix.current_video.hdr10_streams) == 1
# def test_parse():
# fake_app.fastflix.current_video = Video(
# source=Path("tests", "media", "Beverly Hills Duck Pond - HDR10plus - Jessica Payne.mp4")
# )
# parse(fake_app)
# assert fake_app.fastflix.current_video.streams.video[0].codec_name == "hevc"
# assert fake_app.fastflix.current_video.streams.video[0].coded_width == 1920
# assert fake_app.fastflix.current_video.streams.video[0].coded_height == 1088
# assert fake_app.fastflix.current_video.streams.video[0].r_frame_rate == "30/1"
# assert fake_app.fastflix.current_video.streams.audio[0].codec_name == "aac"
# parse_hdr_details(fake_app)
# assert len(fake_app.fastflix.current_video.hdr10_streams) == 1

0 comments on commit 6e6cd95

Please sign in to comment.