Repository: learningequality/ricecooker (language: python)

Issue:
Update CI to Github Actions
Updates CI to use Github Actions.

Fixes #313


Discussion / hints:

Fix patch:
diff --git a/tox.ini b/tox.ini
index ce1f4404..875ff2c9 100644
--- a/tox.ini
+++ b/tox.ini
@@ -9,8 +9,6 @@ python =
 
 
 [testenv]
-passenv =
-    TRAVIS
 setenv =
     PYTHONPATH = {toxinidir}
 commands =


Test patch:
diff --git a/tests/test_files.py b/tests/test_files.py
index 09b9707e..d63dc89a 100644
--- a/tests/test_files.py
+++ b/tests/test_files.py
@@ -15,8 +15,6 @@
 
 from test_pdfutils import _save_file_url_to_path
 
-IS_TRAVIS_TESTING = "TRAVIS" in os.environ and os.environ["TRAVIS"] == "true"
-
 
 # Process all of the files
 def process_files(video_file, html_file, audio_file, document_file, epub_file, thumbnail_file, subtitle_file):
@@ -171,7 +169,7 @@ def test_webvideo_to_dict():
 
 """ *********** YOUTUBEVIDEOFILE TESTS *********** """
 
-@pytest.mark.skipif(IS_TRAVIS_TESTING, reason="Requires connecting to youtube.")
+@pytest.mark.skipif(True, reason="Requires connecting to youtube.")
 def test_youtubevideo_process_file(youtube_video_dict):
     video_file = YouTubeVideoFile(youtube_id=youtube_video_dict['youtube_id'])
     filename = video_file.process_file()
@@ -226,7 +224,7 @@ def test_is_youtube_subtitle_file_unsupported_language(subtitles_langs_ubsupport
         lang_obj = _get_language_with_alpha2_fallback(lang)
         assert lang_obj is None, 'lookup should fail'
 
-@pytest.mark.skipif(IS_TRAVIS_TESTING, reason="Requires connecting to youtube.")
+@pytest.mark.skipif(True, reason="Requires connecting to youtube.")
 def test_youtubesubtitle_process_file(youtube_video_with_subs_dict):
     youtube_id = youtube_video_with_subs_dict['youtube_id']
     lang = youtube_video_with_subs_dict['subtitles_langs'][0]
diff --git a/tests/test_videos.py b/tests/test_videos.py
index 4902a625..66a26350 100644
--- a/tests/test_videos.py
+++ b/tests/test_videos.py
@@ -15,7 +15,6 @@
 from ricecooker.classes.nodes import VideoNode
 
 from conftest import download_fixture_file
-IS_TRAVIS_TESTING = "TRAVIS" in os.environ and os.environ["TRAVIS"] == "true"
 
 
 @pytest.fixture
@@ -78,7 +77,6 @@ def make_video_file(video_file_file, language='en'):
 """ *********** TEST BASIC VIDEO PROCESSING  *********** """
 
 
-@pytest.mark.skipif(IS_TRAVIS_TESTING, reason="Skipping ffmpeg tests on Travis.")
 class Test_video_processing_and_presets(object):
 
     def setup_method(self):
@@ -117,7 +115,6 @@ def get_resolution(videopath):
     width, height = int(m.group(1)), int(m.group(2))
     return width, height
 
-@pytest.mark.skipif(IS_TRAVIS_TESTING, reason="Skipping ffmpeg tests on Travis.")
 class Test_video_compression(object):
 
     def setup_method(self):
@@ -167,7 +164,6 @@ def test_handles_bad_file(self, bad_video):
 
 """ *********** TEST VIDEO CONVERSION  *********** """
 
-@pytest.mark.skipif(IS_TRAVIS_TESTING, reason="Skipping ffmpeg tests on Travis.")
 class Test_video_conversion(object):
 
     def setup_method(self):