exasol / ai-lab

Development environment for data science developers
MIT License
3 stars 0 forks source link

Run Notebook Tests in Parallel GitHub Workflow Runs #307

Closed ckunki closed 1 month ago

ckunki commented 1 month ago

Enable to run Notebook Tests in Parallel GitHub Workflow Runs.

Currently,

Sub Tasks

Enhancing notebook_test_runner.test_notebook()

tkilias commented 1 month ago

Suggestion for the parameterized fixture with cli parameter

@fixture(scope="module", params=[
    python_file.name
    for python_file in sorted(TEST_RESOURCE_PATH.glob("nbtest_*.py"))
    if python_file.is_file()
    ])
def notebook_test_file(request):
    if request.options.get("cli-parameter") == request.param:
        return request.param
    else:
        pytest.skip("Test disabled")

def test_notebook(notebook_test_container_with_log, notebook_test_file):
    ...