Skip to content

Commit 906953b

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 df1d9bb commit 906953b

5 files changed

Lines changed: 154 additions & 132 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: rust

.github/workflows/build.yaml

Lines changed: 97 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -33,87 +33,100 @@ jobs:
3333
python-version: ["3.11"]
3434

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