File tree Expand file tree Collapse file tree 3 files changed +48
-6
lines changed
Expand file tree Collapse file tree 3 files changed +48
-6
lines changed Original file line number Diff line number Diff line change 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
44add_docs : true
55add_extension : cpp
Original file line number Diff line number Diff line change @@ -136,6 +136,20 @@ jobs:
136136 CIBW_BEFORE_ALL : call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
137137 if : matrix.os == 'windows-latest'
138138
139+ - name : Test wheel install
140+ run : |
141+ python -m venv /tmp/test-wheel
142+ /tmp/test-wheel/bin/pip install dist/*.whl
143+ /tmp/test-wheel/bin/python -c "import python_template_cpp"
144+ if : matrix.os == 'ubuntu-latest'
145+
146+ - name : Test sdist install
147+ run : |
148+ python -m venv /tmp/test-sdist
149+ /tmp/test-sdist/bin/pip install dist/*.tar.gz
150+ /tmp/test-sdist/bin/python -c "import python_template_cpp"
151+ if : matrix.os == 'ubuntu-latest'
152+
139153 - uses : actions/upload-artifact@v7
140154 with :
141155 name : dist-${{matrix.os}}-${{matrix.python-version}}
Original file line number Diff line number Diff line change 11name : Publish Docs
22
33on :
4- push :
5- branches :
6- - main
4+ workflow_run :
5+ workflows : ["Build Status"]
6+ branches : [main]
7+ types : [completed]
78 workflow_dispatch :
9+
810permissions :
11+ actions : read
912 contents : write
13+
1014jobs :
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- - run : uv pip install .[develop]
17- - 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+
1845 - run : yardang build
46+
1947 - uses : peaceiris/actions-gh-pages@v4
2048 with :
2149 publish_branch : gh-pages
You can’t perform that action at this time.
0 commit comments