Updated tests to run in GitHub actions

This commit is contained in:
Rhet Turnbull
2020-10-03 13:48:18 -07:00
parent 2e652b04d0
commit 4099253c8e
4 changed files with 24 additions and 2 deletions

View File

@@ -840,6 +840,10 @@ def test_export_edited_suffix():
assert sorted(files) == sorted(CLI_EXPORT_FILENAMES_EDITED_SUFFIX)
@pytest.mark.skipif(
"OSXPHOTOS_TEST_CONVERT" not in os.environ,
reason="Skip if running in Github actions, no GPU.",
)
def test_export_convert_to_jpeg():
""" test --convert-to-jpeg """
import glob
@@ -862,6 +866,10 @@ def test_export_convert_to_jpeg():
assert large_file.stat().st_size > 10000000
@pytest.mark.skipif(
"OSXPHOTOS_TEST_CONVERT" not in os.environ,
reason="Skip if running in Github actions, no GPU.",
)
def test_export_convert_to_jpeg_quality():
""" test --convert-to-jpeg --jpeg-quality """
import glob