1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-22 14:54:22 +00:00

🔨 Make two parallel job instead of using dependencies

This commit is contained in:
Steffo 2021-11-21 01:10:15 +01:00
parent b6a889e683
commit b6bfaeec14
Signed by: steffo
GPG key ID: 6965406171929D01
2 changed files with 32 additions and 14 deletions

View file

@ -6,8 +6,9 @@ on:
- ".github/workflows/build-sphinx-report.yml" - ".github/workflows/build-sphinx-report.yml"
- "report/**" - "report/**"
jobs: jobs:
setup: html:
name: "Setup the environment" name: "Build HTML document"
needs: [ setup ]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: "Checkout repository" - name: "Checkout repository"
@ -23,11 +24,6 @@ jobs:
- name: "Install backend dependencies" - name: "Install backend dependencies"
working-directory: backend/ working-directory: backend/
run: "poetry install --no-interaction" run: "poetry install --no-interaction"
html:
name: "Build HTML document"
needs: [ setup ]
runs-on: ubuntu-latest
steps:
- name: "Activate Python environment" - name: "Activate Python environment"
run: | run: |
source $(poetry env list --full-path | cut -f1 -d" ")/bin/activate source $(poetry env list --full-path | cut -f1 -d" ")/bin/activate
@ -48,6 +44,19 @@ jobs:
needs: [ setup ] needs: [ setup ]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: 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" - name: "Activate Python environment"
run: | run: |
source $(poetry env list --full-path | cut -f1 -d" ")/bin/activate source $(poetry env list --full-path | cut -f1 -d" ")/bin/activate

View file

@ -6,8 +6,9 @@ on:
- ".github/workflows/build-sphinx-thesis.yml" - ".github/workflows/build-sphinx-thesis.yml"
- "thesis/**" - "thesis/**"
jobs: jobs:
setup: html:
name: "Setup the environment" name: "Build HTML document"
needs: [ setup ]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: "Checkout repository" - name: "Checkout repository"
@ -23,11 +24,6 @@ jobs:
- name: "Install backend dependencies" - name: "Install backend dependencies"
working-directory: backend/ working-directory: backend/
run: "poetry install --no-interaction" run: "poetry install --no-interaction"
html:
name: "Build HTML document"
needs: [ setup ]
runs-on: ubuntu-latest
steps:
- name: "Activate Python environment" - name: "Activate Python environment"
run: | run: |
source $(poetry env list --full-path | cut -f1 -d" ")/bin/activate source $(poetry env list --full-path | cut -f1 -d" ")/bin/activate
@ -48,6 +44,19 @@ jobs:
needs: [ setup ] needs: [ setup ]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: 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" - name: "Activate Python environment"
run: | run: |
source $(poetry env list --full-path | cut -f1 -d" ")/bin/activate source $(poetry env list --full-path | cut -f1 -d" ")/bin/activate