Skip to content

Commit 8319aee

Browse files
Update from copier (2026-04-11T17:07:49)
Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 05f0bcc commit 8319aee

File tree

4 files changed

+78
-67
lines changed

4 files changed

+78
-67
lines changed

.copier-answers.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier
2-
_commit: 9b579a3
2+
_commit: 2a8d256
33
_src_path: https://github.com/python-project-templates/base.git
44
add_docs: true
55
add_extension: rust

.github/workflows/build.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,20 @@ jobs:
9797
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=11.0
9898
if: matrix.os != 'ubuntu-latest'
9999

100+
- name: Test wheel install
101+
run: |
102+
python -m venv /tmp/test-wheel
103+
/tmp/test-wheel/bin/pip install dist/*.whl
104+
/tmp/test-wheel/bin/python -c "import python_template_rust"
105+
if: matrix.os == 'ubuntu-latest'
106+
107+
- name: Test sdist install
108+
run: |
109+
python -m venv /tmp/test-sdist
110+
/tmp/test-sdist/bin/pip install dist/*.tar.gz
111+
/tmp/test-sdist/bin/python -c "import python_template_rust"
112+
if: matrix.os == 'ubuntu-latest'
113+
100114
- uses: actions/upload-artifact@v7
101115
with:
102116
name: dist-${{matrix.os}}

.github/workflows/docs.yaml

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,49 @@
11
name: Publish Docs
22

33
on:
4-
push:
5-
branches:
6-
- main
4+
workflow_run:
5+
workflows: ["Build Status"]
6+
branches: [main]
7+
types: [completed]
78
workflow_dispatch:
9+
810
permissions:
11+
actions: read
912
contents: write
13+
1014
jobs:
1115
docs:
1216
runs-on: ubuntu-latest
17+
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
1318
steps:
1419
- uses: actions/checkout@v6
1520
- uses: actions-ext/python/setup@main
16-
- uses: actions-ext/rust/setup@main
17-
- run: uv pip install .[develop]
18-
- run: uv pip install yardang
21+
22+
- name: Download dist from build
23+
uses: actions/download-artifact@v7
24+
with:
25+
pattern: dist-ubuntu-latest*
26+
merge-multiple: true
27+
path: dist
28+
run-id: ${{ github.event.workflow_run.id }}
29+
github-token: ${{ secrets.GITHUB_TOKEN }}
30+
repository: ${{ github.repository }}
31+
if: github.event_name == 'workflow_run'
32+
33+
- name: Install from wheel
34+
run: |
35+
uv pip install dist/*.whl
36+
uv pip install yardang
37+
if: github.event_name == 'workflow_run'
38+
39+
- name: Install from source (manual trigger)
40+
run: |
41+
uv pip install .[develop]
42+
uv pip install yardang
43+
if: github.event_name == 'workflow_dispatch'
44+
1945
- run: yardang build
46+
2047
- uses: peaceiris/actions-gh-pages@v4
2148
with:
2249
publish_branch: gh-pages

Cargo.lock

Lines changed: 30 additions & 60 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)