fix pytest syntax
MODIFY
.github/workflows/main.yaml
.github/workflows/main.yaml
@@ -53,7 +53,7 @@ jobs:
- name: Run Tests
shell: bash -l {0}
run: |
- py.test tests -k caching_copying -x -v --redirect-dask-worker-logs-to-stdout -s \
+ py.test tests -k caching_copying -x -v --redirect-dask-worker-logs-to-stdout=DEBUG -s \
--cov=pangeo_forge_recipes --cov-config .coveragerc --cov-report term-missing
coverage xml
- name: Codecov

MODIFY
tests/conftest.py
tests/conftest.py
@@ -26,6 +26,8 @@ from pangeo_forge_recipes.patterns import (
from pangeo_forge_recipes.storage import CacheFSSpecTarget, FSSpecTarget, MetadataTarget
+# to use this feature, e.g.
+# $ pytest --redirect-dask-worker-logs-to-stdout=DEBUG
def pytest_addoption(parser):
parser.addoption(
"--redirect-dask-worker-logs-to-stdout", action="store", default="NOTSET",

fix pytest syntax