From ce3526bf451bf1a60b3fafaf5f286f24a3dbd80f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 21 Nov 2021 05:07:26 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Change=20poetry=20usage=20method?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-sphinx-report.yml | 12 +++++------- .github/workflows/build-sphinx-thesis.yml | 12 +++++------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build-sphinx-report.yml b/.github/workflows/build-sphinx-report.yml index 1f08fe3..48a78e8 100644 --- a/.github/workflows/build-sphinx-report.yml +++ b/.github/workflows/build-sphinx-report.yml @@ -23,9 +23,8 @@ jobs: - name: "Install backend dependencies" working-directory: backend/ run: "poetry install --no-interaction" - - name: "Activate Python environment" - run: | - source $(poetry env list --full-path | cut -f1 -d" ")/bin/activate + - name: "Find Poetry Python environment" + run: echo "pythonLocation=$(poetry env list --full-path | cut -f1 -d' ')/bin" >> $GITHUB_ENV - name: "Build HTML document with Sphinx" uses: ammaraskar/sphinx-action@master with: @@ -54,10 +53,9 @@ jobs: poetry-version: 1.1.11 - name: "Install backend dependencies" working-directory: backend/ - run: "poetry install --no-interaction" - - name: "Activate Python environment" - run: | - source $(poetry env list --full-path | cut -f1 -d" ")/bin/activate + run: poetry install --no-interaction + - name: "Find Poetry Python environment" + run: echo "pythonLocation=$(poetry env list --full-path | cut -f1 -d' ')/bin" >> $GITHUB_ENV - name: "Install Latex dependencies" run: apt-get update -y && apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended - name: "Build Latex document with Sphinx" diff --git a/.github/workflows/build-sphinx-thesis.yml b/.github/workflows/build-sphinx-thesis.yml index 8bb3e40..2e28e6f 100644 --- a/.github/workflows/build-sphinx-thesis.yml +++ b/.github/workflows/build-sphinx-thesis.yml @@ -23,9 +23,8 @@ jobs: - name: "Install backend dependencies" working-directory: backend/ run: "poetry install --no-interaction" - - name: "Activate Python environment" - run: | - source $(poetry env list --full-path | cut -f1 -d" ")/bin/activate + - name: "Find Poetry Python environment" + run: echo "pythonLocation=$(poetry env list --full-path | cut -f1 -d' ')/bin" >> $GITHUB_ENV - name: "Build HTML document with Sphinx" uses: ammaraskar/sphinx-action@master with: @@ -54,10 +53,9 @@ jobs: poetry-version: 1.1.11 - name: "Install backend dependencies" working-directory: backend/ - run: "poetry install --no-interaction" - - name: "Activate Python environment" - run: | - source $(poetry env list --full-path | cut -f1 -d" ")/bin/activate + run: poetry install --no-interaction + - name: "Find Poetry Python environment" + run: echo "pythonLocation=$(poetry env list --full-path | cut -f1 -d' ')/bin" >> $GITHUB_ENV - name: "Install Latex dependencies" run: apt-get update -y && apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended - name: "Build Latex document with Sphinx"