mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-21 22:34: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"
|
||||
- "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
|
||||
|
|
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"
|
||||
- "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
|
||||
|
|
Loading…
Reference in a new issue