diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index c5dd296a..1740fda6 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -106,7 +106,7 @@ jobs: - name: Sphinx build run: | - sphinx-build doc _build + conda run --name diff_check --no-capture-output invoke documentize working-directory: ${{github.workspace}} diff --git a/tasks.py b/tasks.py index cb12bf8c..bb1773c2 100644 --- a/tasks.py +++ b/tasks.py @@ -1,5 +1,6 @@ # tasks.py from invoke import task +import subprocess PATH_MANIFEST = "./manifest.yml" PATH_LOGO = "./logo.png" @@ -62,4 +63,4 @@ def yakerize(c): @task def documentize(c): - c.run("conda run --name diff_check --no-capture-output sphinx-build doc _build") \ No newline at end of file + subprocess.run("conda activate diff_check && sphinx-build doc _build", shell=True, check=True) \ No newline at end of file