Skip to content

Commit e392033

Browse files
authored
Merge pull request #142 from python-project-templates/tkp/inp
Install lib in-place for docs build
2 parents 9a153d8 + 86281d5 commit e392033

8 files changed

Lines changed: 15 additions & 10 deletions

File tree

.github/workflows/build.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,22 @@ jobs:
6666
elif [[ "$RUNNER_OS" == "macOS" ]]; then
6767
brew install clang-format
6868
fi
69+
if: matrix.template == 'cpp' || matrix.template == 'cppjswasm'
6970

7071
- uses: actions-ext/node/setup@main
7172
with:
7273
version: 22.x
7374
js_folder: "."
75+
if: matrix.template == 'js' || matrix.template == 'jupyter' || matrix.template == 'cppjswasm' || matrix.template == 'rustjswasm'
7476

7577
- uses: actions-ext/rust/setup@main
78+
if: matrix.template == 'rust' || matrix.template == 'rustjswasm'
7679

77-
- run: |
78-
pnpm install
79-
cargo build
80+
- run: pnpm install
81+
if: matrix.template == 'js' || matrix.template == 'jupyter' || matrix.template == 'cppjswasm' || matrix.template == 'rustjswasm'
82+
83+
- run: cargo build
84+
if: matrix.template == 'rust' || matrix.template == 'rustjswasm'
8085

8186
- run: |
8287
make gen-${{matrix.template}}

cpp/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
- name: Install from wheel
3434
run: |
35-
uv pip install dist/*.whl
35+
uv pip install dist/*.whl --target .
3636
uv pip install yardang
3737
if: github.event_name == 'workflow_run'
3838

cppjswasm/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
- name: Install from wheel
3434
run: |
35-
uv pip install dist/*.whl
35+
uv pip install dist/*.whl --target .
3636
uv pip install yardang
3737
if: github.event_name == 'workflow_run'
3838

js/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
- name: Install from wheel
3434
run: |
35-
uv pip install dist/*.whl
35+
uv pip install dist/*.whl --target .
3636
uv pip install yardang
3737
if: github.event_name == 'workflow_run'
3838

jupyter/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
- name: Install from wheel
3434
run: |
35-
uv pip install dist/*.whl
35+
uv pip install dist/*.whl --target .
3636
uv pip install yardang
3737
if: github.event_name == 'workflow_run'
3838

python/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
- name: Install from wheel
3434
run: |
35-
uv pip install dist/*.whl
35+
uv pip install dist/*.whl --target .
3636
uv pip install yardang
3737
if: github.event_name == 'workflow_run'
3838

rust/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
- name: Install from wheel
3434
run: |
35-
uv pip install dist/*.whl
35+
uv pip install dist/*.whl --target .
3636
uv pip install yardang
3737
if: github.event_name == 'workflow_run'
3838

rustjswasm/.github/workflows/{% if add_docs %}docs.yaml{% endif %}.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
- name: Install from wheel
3434
run: |
35-
uv pip install dist/*.whl
35+
uv pip install dist/*.whl --target .
3636
uv pip install yardang
3737
if: github.event_name == 'workflow_run'
3838

0 commit comments

Comments
 (0)