Skip to content

Commit 6dc6417

Browse files
committed
reinitialize copier
1 parent 6fa6256 commit 6dc6417

5 files changed

Lines changed: 76 additions & 82 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: '4875149'
2+
_commit: b2a4844
33
_src_path: https://github.com/python-project-templates/base.git
44
add_docs: true
55
add_extension: cpp

.github/workflows/build.yaml

Lines changed: 29 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -30,63 +30,54 @@ jobs:
3030
strategy:
3131
matrix:
3232
os: [ubuntu-latest, macos-latest, windows-latest]
33-
python-version: ["3.11", "3.12", "3.13"]
34-
cibuildwheel: ["cp311", "cp312", "cp313"]
35-
exclude:
36-
- python-version: "3.11"
37-
cibuildwheel: "cp312"
38-
- python-version: "3.11"
39-
cibuildwheel: "cp313"
40-
- python-version: "3.12"
41-
cibuildwheel: "cp311"
42-
- python-version: "3.12"
43-
cibuildwheel: "cp313"
44-
- python-version: "3.13"
33+
python:
34+
- version: "3.11"
4535
cibuildwheel: "cp311"
46-
- python-version: "3.13"
36+
primary: true
37+
- version: "3.12"
4738
cibuildwheel: "cp312"
39+
primary: false
40+
- version: "3.13"
41+
cibuildwheel: "cp313"
42+
primary: false
4843

4944
steps:
50-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
45+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
46+
with:
47+
persist-credentials: false
5148

52-
- uses: actions-ext/python/setup@main
49+
- uses: actions-ext/python/setup@6e1b91a408ea89f49bc8aff8724f83826f7b5446
5350
with:
54-
version: ${{ matrix.python-version }}
51+
version: ${{ matrix.python.version }}
5552

56-
- name: Install dependencies
57-
run: make develop
58-
if: matrix.os != 'windows-latest'
53+
- uses: actions-ext/cpp/setup@51c484ef64088c62434226039d0e3359f5fc8df6
5954

6055
- name: Install dependencies
61-
run: |
62-
for /f "usebackq tokens=*" %%i in (`vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath`) do call "%%i\VC\Auxiliary\Build\vcvars64.bat"
63-
make develop
64-
shell: cmd
65-
if: matrix.os == 'windows-latest'
56+
run: make develop
6657

6758
- name: Lint
6859
run: make lint
69-
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
60+
if: matrix.os == 'ubuntu-latest' && matrix.python.primary
7061

7162
- name: Checks
7263
run: make checks
73-
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
64+
if: matrix.os == 'ubuntu-latest' && matrix.python.primary
7465

7566
- name: Test
7667
run: make coverage
7768

7869
- name: Upload test results (Python)
79-
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
70+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
8071
with:
81-
name: test-results-${{ matrix.os }}-${{ matrix.python-version }}
72+
name: test-results-${{ matrix.os }}-${{ matrix.python.version }}
8273
path: junit.xml
83-
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
74+
if: matrix.os == 'ubuntu-latest' && matrix.python.primary
8475

8576
- name: Publish Unit Test Results
8677
uses: EnricoMi/publish-unit-test-result-action@d0a4676d0e0b938bc201470d88276b7c74c712b3 # v2.24.0
8778
with:
8879
files: '**/junit.xml'
89-
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
80+
if: matrix.os == 'ubuntu-latest' && matrix.python.primary
9081

9182
- name: Upload coverage
9283
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
@@ -103,7 +94,7 @@ jobs:
10394
make dist-py-wheel
10495
make dist-check
10596
env:
106-
CIBW_BUILD: "${{ matrix.cibuildwheel }}-manylinux*"
97+
CIBW_BUILD: "${{ matrix.python.cibuildwheel }}-manylinux*"
10798
CIBW_BUILD_VERBOSITY: 3
10899
if: matrix.os == 'ubuntu-latest'
109100

@@ -112,32 +103,29 @@ jobs:
112103
rm -rf dist
113104
make dist-py-wheel
114105
env:
115-
CIBW_BUILD: "${{ matrix.cibuildwheel }}-macos*"
106+
CIBW_BUILD: "${{ matrix.python.cibuildwheel }}-macos*"
116107
CIBW_BUILD_VERBOSITY: 3
117108
if: matrix.os == 'macos-latest'
118109

119110
- name: Make dist (Windows)
120111
run: |
121-
if exist dist rmdir /s /q dist
122-
for /f "usebackq tokens=*" %%i in (`vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath`) do call "%%i\VC\Auxiliary\Build\vcvars64.bat"
112+
if (Test-Path dist) { Remove-Item dist -Recurse -Force }
123113
make dist-py-wheel
124-
shell: cmd
125114
env:
126-
CIBW_BUILD: "${{ matrix.cibuildwheel }}-win_amd64"
127-
CIBW_BEFORE_ALL: for /f "usebackq tokens=*" %i in (`vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath`) do call "%i\VC\Auxiliary\Build\vcvars64.bat"
115+
CIBW_BUILD: "${{ matrix.python.cibuildwheel }}-win_amd64"
128116
if: matrix.os == 'windows-latest'
129117

130-
- uses: actions-ext/python/test-wheel@main
118+
- uses: actions-ext/python/test-wheel@6e1b91a408ea89f49bc8aff8724f83826f7b5446
131119
with:
132120
module: python_template_cpp
133121
if: matrix.os == 'ubuntu-latest'
134122

135-
- uses: actions-ext/python/test-sdist@main
123+
- uses: actions-ext/python/test-sdist@6e1b91a408ea89f49bc8aff8724f83826f7b5446
136124
with:
137125
module: python_template_cpp
138126
if: matrix.os == 'ubuntu-latest'
139127

140-
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
128+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
141129
with:
142-
name: dist-${{matrix.os}}-${{matrix.python-version}}
130+
name: dist-${{matrix.os}}-${{matrix.python.version}}
143131
path: dist

.github/workflows/copier.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ jobs:
1212
pull-requests: write
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions-ext/copier-update@main
15+
- uses: actions-ext/copier-update@378500315a83b5985e175139a55f1fa5ea6dde09
1616
with:
1717
token: ${{ secrets.WORKFLOW_TOKEN }}

.github/workflows/docs.yaml

Lines changed: 37 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -16,37 +16,40 @@ 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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
20-
- uses: actions-ext/python/setup@main
21-
22-
- name: Download dist from build
23-
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
24-
with:
25-
pattern: dist-ubuntu-latest-3.11
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 dist/*.whl --target . --no-deps
37-
uv pip install yardang
38-
if: github.event_name == 'workflow_run'
39-
40-
- name: Install from source (manual trigger)
41-
run: |
42-
uv pip install .[develop]
43-
uv pip install yardang
44-
if: github.event_name == 'workflow_dispatch'
45-
46-
- run: yardang build
47-
48-
- uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
49-
with:
50-
publish_branch: gh-pages
51-
github_token: ${{ secrets.GITHUB_TOKEN }}
52-
publish_dir: docs/html
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-3.11
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

.github/workflows/wiki.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ jobs:
2020
deploy:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
24-
- run: cp README.md docs/wiki/Home.md
25-
- uses: Andrew-Chen-Wang/github-wiki-action@1bbb4280446f9630e8e21a18012cbacf3b0f992e # v5.0.6
26-
with:
27-
path: docs/wiki
23+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
24+
with:
25+
persist-credentials: false
26+
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

0 commit comments

Comments
 (0)