Repository: pangeo-forge/pangeo-forge-recipes (language: python)

Issue:
Tests hang on github actions
The tests are now consistently getting stuck, e.g.

https://github.com/pangeo-forge/pangeo-forge/runs/1749653870?check_suite_focus=true

It gets suck on tests like these
```
tests/test_fixtures.py::test_fixture_http_files[D]
tests/test_fixtures.py::test_fixture_http_files[2D] 
```
never finishes.

It's because of this fixture, which uses subprocess to spawn an HTTP server
https://github.com/pangeo-forge/pangeo-forge/blob/71c367cc42f0696da5d08c132f9940e9964fc6ce/tests/conftest.py#L60-L74

I'm not sure how we can fix this.



Discussion / hints:

Fix patch:
diff --git a/docs/requirements.txt b/docs/requirements.txt
index 51875dbb..587cf695 100644
--- a/docs/requirements.txt
+++ b/docs/requirements.txt
@@ -4,3 +4,4 @@ sphinx_book_theme
 myst-parser
 myst-nb
 sphinx-copybutton
+sphinx-autodoc-typehints


Test patch:
diff --git a/tests/conftest.py b/tests/conftest.py
index af505ade..1f9f8d64 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,3 +1,4 @@
+import os
 import subprocess
 import time
 
@@ -57,8 +58,10 @@ def netcdf_local_paths(daily_xarray_dataset, tmpdir_factory, request):
     return paths
 
 
-@pytest.fixture(scope="session")
+@pytest.fixture()
 def netcdf_http_server(netcdf_local_paths):
+    if os.environ.get("GITHUB_WORKFLOW"):
+        pytest.skip("Skipping test inside GitHub Workflow")
     first_path = netcdf_local_paths[0]
     # assume that all files are in the same directory
     basedir = first_path.dirpath()