Skip to content

Commit 31fee8d

Browse files
Update from copier (2026-08-01T17:57:45)
Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 7e69d20 commit 31fee8d

5 files changed

Lines changed: 161 additions & 138 deletions

File tree

.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: b2a4844
2+
_commit: 225aba1
33
_src_path: https://github.com/python-project-templates/base.git
44
add_docs: true
55
add_extension: rustjswasm

.github/workflows/build.yaml

Lines changed: 103 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -34,92 +34,106 @@ jobs:
3434
node-version: [22.x]
3535

3636
steps:
37-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
38-
with:
39-
persist-credentials: false
40-
41-
- uses: actions-ext/python/setup@6e1b91a408ea89f49bc8aff8724f83826f7b5446
42-
with:
43-
version: ${{ matrix.python-version }}
44-
45-
- uses: actions-ext/rust/setup@c9cdbe5cc8a2485bf2eb22644302559c741ca763
46-
47-
- uses: actions-ext/node/setup@0ea5bdcd24d2488b28e16bf611b446a2f8e1e12f
48-
with:
49-
version: ${{ matrix.node-version }}
50-
51-
- name: Install dependencies
52-
run: make develop
53-
54-
- name: Lint
55-
run: make lint
56-
if: matrix.os == 'ubuntu-latest'
57-
58-
- name: Checks
59-
run: make checks
60-
if: matrix.os == 'ubuntu-latest'
61-
62-
- name: Build
63-
run: make build
64-
65-
- name: Test
66-
run: make coverage
67-
68-
- name: Upload test results (Python)
69-
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
70-
with:
71-
name: test-results-${{ matrix.os }}-${{ matrix.python-version }}
72-
path: '**/junit.xml'
73-
if: matrix.os == 'ubuntu-latest'
74-
75-
- name: Publish Unit Test Results
76-
uses: EnricoMi/publish-unit-test-result-action@d0a4676d0e0b938bc201470d88276b7c74c712b3 # v2.24.0
77-
with:
78-
files: '**/junit.xml'
79-
if: matrix.os == 'ubuntu-latest'
80-
81-
- name: Upload coverage
82-
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
83-
with:
84-
token: ${{ secrets.CODECOV_TOKEN }}
85-
86-
- name: Set up QEMU
87-
uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0
88-
with:
89-
platforms: all
90-
if: runner.os == 'Linux' && runner.arch == 'X64'
91-
92-
- name: Make dist (Linux)
93-
run: |
94-
rm -rf dist
95-
make dist-rs
96-
make dist-py-sdist
97-
make dist-py-wheel
98-
make dist-check
99-
shell: bash
100-
if: matrix.os == 'ubuntu-latest'
101-
102-
- name: Make dist (Macos / Windows)
103-
run: |
104-
rm -rf dist
105-
make dist-py-wheel
106-
make dist-check
107-
shell: bash
108-
env:
109-
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=11.0
110-
if: matrix.os != 'ubuntu-latest'
111-
112-
- uses: actions-ext/python/test-wheel@6e1b91a408ea89f49bc8aff8724f83826f7b5446
113-
with:
114-
module: python_template_rust
115-
if: matrix.os == 'ubuntu-latest'
116-
117-
- uses: actions-ext/python/test-sdist@6e1b91a408ea89f49bc8aff8724f83826f7b5446
118-
with:
119-
module: python_template_rust
120-
if: matrix.os == 'ubuntu-latest'
121-
122-
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
123-
with:
124-
name: dist-${{matrix.os}}
125-
path: dist
37+
- name: Checkout
38+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
39+
with:
40+
persist-credentials: false
41+
42+
- name: Setup Python
43+
uses: actions-ext/python/setup@6e1b91a408ea89f49bc8aff8724f83826f7b5446
44+
with:
45+
version: ${{ matrix.python-version }}
46+
47+
- name: Setup Rust
48+
uses: actions-ext/rust/setup@c9cdbe5cc8a2485bf2eb22644302559c741ca763
49+
50+
- name: Setup Node.js
51+
uses: actions-ext/node/setup@0ea5bdcd24d2488b28e16bf611b446a2f8e1e12f
52+
with:
53+
version: ${{ matrix.node-version }}
54+
55+
- name: Install dependencies
56+
run: make develop
57+
58+
- name: Lint
59+
run: make lint
60+
if: matrix.os == 'ubuntu-latest'
61+
62+
- name: Checks
63+
run: make checks
64+
if: matrix.os == 'ubuntu-latest'
65+
66+
- name: Build
67+
run: make build
68+
69+
- name: Test
70+
run: make coverage
71+
72+
- name: Upload test results (Python)
73+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
74+
with:
75+
name: test-results-${{ matrix.os }}-${{ matrix.python-version }}
76+
path: '**/junit.xml'
77+
if: matrix.os == 'ubuntu-latest'
78+
79+
- name: Publish test results
80+
uses: EnricoMi/publish-unit-test-result-action@d0a4676d0e0b938bc201470d88276b7c74c712b3 # v2.24.0
81+
with:
82+
files: '**/junit.xml'
83+
if: matrix.os == 'ubuntu-latest'
84+
85+
- name: Upload coverage
86+
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
87+
with:
88+
token: ${{ secrets.CODECOV_TOKEN }}
89+
90+
- name: Set up QEMU
91+
uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0
92+
with:
93+
platforms: all
94+
if: runner.os == 'Linux' && runner.arch == 'X64'
95+
96+
- name: Free disk space
97+
run: |
98+
sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc /usr/local/.ghcup /usr/share/swift
99+
df -h /
100+
shell: bash
101+
if: matrix.os == 'ubuntu-latest'
102+
103+
- name: Build distributions (Linux)
104+
run: |
105+
rm -rf dist
106+
make dist-rs
107+
make dist-py-sdist
108+
make dist-py-wheel
109+
make dist-check
110+
shell: bash
111+
if: matrix.os == 'ubuntu-latest'
112+
113+
- name: Build distributions (macOS/Windows)
114+
run: |
115+
rm -rf dist
116+
make dist-py-wheel
117+
make dist-check
118+
shell: bash
119+
env:
120+
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=11.0
121+
if: matrix.os != 'ubuntu-latest'
122+
123+
- name: Test wheel
124+
uses: actions-ext/python/test-wheel@6e1b91a408ea89f49bc8aff8724f83826f7b5446
125+
with:
126+
module: python_template_rust
127+
if: matrix.os == 'ubuntu-latest'
128+
129+
- name: Test source distribution
130+
uses: actions-ext/python/test-sdist@6e1b91a408ea89f49bc8aff8724f83826f7b5446
131+
with:
132+
module: python_template_rust
133+
if: matrix.os == 'ubuntu-latest'
134+
135+
- name: Upload distributions
136+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
137+
with:
138+
name: dist-${{matrix.os}}
139+
path: dist

.github/workflows/copier.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
pull-requests: write
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions-ext/copier-update@378500315a83b5985e175139a55f1fa5ea6dde09
16-
with:
17-
token: ${{ secrets.WORKFLOW_TOKEN }}
15+
- name: Update from Copier
16+
uses: actions-ext/copier-update@378500315a83b5985e175139a55f1fa5ea6dde09
17+
with:
18+
token: ${{ secrets.WORKFLOW_TOKEN }}

.github/workflows/docs.yaml

Lines changed: 42 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -16,41 +16,45 @@ jobs:
1616
runs-on: ubuntu-latest
1717
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
1818
steps:
19-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
20-
with:
21-
persist-credentials: false
22-
23-
- uses: actions-ext/python/setup@6e1b91a408ea89f49bc8aff8724f83826f7b5446
24-
25-
- name: Download dist from build
26-
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
27-
with:
28-
pattern: dist-ubuntu-latest*
29-
merge-multiple: true
30-
path: dist
31-
run-id: ${{ github.event.workflow_run.id }}
32-
github-token: ${{ secrets.GITHUB_TOKEN }}
33-
repository: ${{ github.repository }}
34-
if: github.event_name == 'workflow_run'
35-
36-
- name: Install from wheel
37-
run: |
38-
uv pip install dist/*.whl
39-
uv pip install dist/*.whl --target . --no-deps
40-
uv pip install yardang
41-
if: github.event_name == 'workflow_run'
42-
43-
- name: Install from source (manual trigger)
44-
run: |
45-
make develop
46-
uv pip install .
47-
uv pip install yardang
48-
if: github.event_name == 'workflow_dispatch'
49-
50-
- run: yardang build
51-
52-
- uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
53-
with:
54-
publish_branch: gh-pages
55-
github_token: ${{ secrets.GITHUB_TOKEN }}
56-
publish_dir: docs/html
19+
- name: Checkout
20+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
21+
with:
22+
persist-credentials: false
23+
24+
- name: Setup Python
25+
uses: actions-ext/python/setup@6e1b91a408ea89f49bc8aff8724f83826f7b5446
26+
27+
- name: Download distributions
28+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
29+
with:
30+
pattern: dist-ubuntu-latest*
31+
merge-multiple: true
32+
path: dist
33+
run-id: ${{ github.event.workflow_run.id }}
34+
github-token: ${{ secrets.GITHUB_TOKEN }}
35+
repository: ${{ github.repository }}
36+
if: github.event_name == 'workflow_run'
37+
38+
- name: Install from wheel
39+
run: |
40+
uv pip install dist/*.whl
41+
uv pip install dist/*.whl --target . --no-deps
42+
uv pip install yardang
43+
if: github.event_name == 'workflow_run'
44+
45+
- name: Install from source (manual trigger)
46+
run: |
47+
make develop
48+
uv pip install .
49+
uv pip install yardang
50+
if: github.event_name == 'workflow_dispatch'
51+
52+
- name: Build documentation
53+
run: yardang build
54+
55+
- name: Publish documentation
56+
uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
57+
with:
58+
publish_branch: gh-pages
59+
github_token: ${{ secrets.GITHUB_TOKEN }}
60+
publish_dir: docs/html

.github/workflows/wiki.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,15 @@ jobs:
2020
deploy:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
24-
with:
25-
persist-credentials: false
23+
- name: Checkout
24+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
25+
with:
26+
persist-credentials: false
2627

27-
- run: cp README.md docs/wiki/Home.md
28-
- uses: Andrew-Chen-Wang/github-wiki-action@1bbb4280446f9630e8e21a18012cbacf3b0f992e # v5.0.6
29-
with:
30-
path: docs/wiki
28+
- name: Prepare wiki
29+
run: cp README.md docs/wiki/Home.md
30+
31+
- name: Publish wiki
32+
uses: Andrew-Chen-Wang/github-wiki-action@1bbb4280446f9630e8e21a18012cbacf3b0f992e # v5.0.6
33+
with:
34+
path: docs/wiki

0 commit comments

Comments
 (0)