mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 06:44:21 +00:00
🔨 Make two parallel job instead of using dependencies
This commit is contained in:
parent
b6a889e683
commit
b6bfaeec14
2 changed files with 32 additions and 14 deletions
23
.github/workflows/build-sphinx-report.yml
vendored
23
.github/workflows/build-sphinx-report.yml
vendored
|
@ -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
|
||||||
|
|
23
.github/workflows/build-sphinx-thesis.yml
vendored
23
.github/workflows/build-sphinx-thesis.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue