Skip to content

Video editing with Python

still fixing the tests

Valentin Zulkower03bdffe2eaca
diff --git a/.github/workflows/test_suite.yml b/.github/workflows/test_suite.yml
index c10c280f..c25c1ba8 100644
--- a/.github/workflows/test_suite.yml
+++ b/.github/workflows/test_suite.yml
@@ -17,7 +17,7 @@ jobs:
runs-on: macos-12
strategy:
matrix:
- python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
+ python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/[email protected]
- uses: s-weigand/[email protected]
@@ -90,7 +90,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
+ python-version: ["3.9", "3.10", "3.11"]
fail-fast: false
steps:
- uses: actions/[email protected]
diff --git a/tests/test_doc_examples.py b/tests/test_doc_examples.py
index d688ad29..35019be9 100644
--- a/tests/test_doc_examples.py
+++ b/tests/test_doc_examples.py
@@ -3,8 +3,6 @@
import os
import pytest
import shutil
-import subprocess
-import sys
import runpy
import pathlib
@@ -40,6 +38,8 @@ scripts = dict(zip(map(str, scripts), scripts)) # This make test name more read
@pytest.mark.parametrize("script", scripts)
def test_doc_examples(util, tmp_path, script):
+ if os.path.basename(script) == "preview.py":
+ pytest.skip("Skipping preview.py because no display is available")
print("Try script: ", script)
if os.path.basename(script) in DOC_EXAMPLES_IGNORE: