From b6bfaeec14903d6c4644a7b90319f83aecd2d9bd Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 21 Nov 2021 01:10:15 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Make=20two=20parallel=20job=20in?= =?UTF-8?q?stead=20of=20using=20dependencies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-sphinx-report.yml | 23 ++++++++++++++++------- .github/workflows/build-sphinx-thesis.yml | 23 ++++++++++++++++------- 2 files changed, 32 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build-sphinx-report.yml b/.github/workflows/build-sphinx-report.yml index 6f7f375..1f81543 100644 --- a/.github/workflows/build-sphinx-report.yml +++ b/.github/workflows/build-sphinx-report.yml @@ -6,8 +6,9 @@ on: - ".github/workflows/build-sphinx-report.yml" - "report/**" jobs: - setup: - name: "Setup the environment" + html: + name: "Build HTML document" + needs: [ setup ] runs-on: ubuntu-latest steps: - name: "Checkout repository" @@ -23,11 +24,6 @@ jobs: - name: "Install backend dependencies" working-directory: backend/ run: "poetry install --no-interaction" - html: - name: "Build HTML document" - needs: [ setup ] - runs-on: ubuntu-latest - steps: - name: "Activate Python environment" run: | source $(poetry env list --full-path | cut -f1 -d" ")/bin/activate @@ -48,6 +44,19 @@ jobs: needs: [ setup ] runs-on: ubuntu-latest steps: + - name: "Checkout repository" + uses: actions/checkout@v2 + - name: "Setup Python" + uses: actions/setup-python@v2 + with: + python-version: 3.9 + - name: "Setup Poetry" + uses: abatilo/actions-poetry@v2.0.0 + with: + 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 diff --git a/.github/workflows/build-sphinx-thesis.yml b/.github/workflows/build-sphinx-thesis.yml index ae0f15e..0ed6fca 100644 --- a/.github/workflows/build-sphinx-thesis.yml +++ b/.github/workflows/build-sphinx-thesis.yml @@ -6,8 +6,9 @@ on: - ".github/workflows/build-sphinx-thesis.yml" - "thesis/**" jobs: - setup: - name: "Setup the environment" + html: + name: "Build HTML document" + needs: [ setup ] runs-on: ubuntu-latest steps: - name: "Checkout repository" @@ -23,11 +24,6 @@ jobs: - name: "Install backend dependencies" working-directory: backend/ run: "poetry install --no-interaction" - html: - name: "Build HTML document" - needs: [ setup ] - runs-on: ubuntu-latest - steps: - name: "Activate Python environment" run: | source $(poetry env list --full-path | cut -f1 -d" ")/bin/activate @@ -48,6 +44,19 @@ jobs: needs: [ setup ] runs-on: ubuntu-latest steps: + - name: "Checkout repository" + uses: actions/checkout@v2 + - name: "Setup Python" + uses: actions/setup-python@v2 + with: + python-version: 3.9 + - name: "Setup Poetry" + uses: abatilo/actions-poetry@v2.0.0 + with: + 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