File tree Expand file tree Collapse file tree 3 files changed +46
-9
lines changed
Expand file tree Collapse file tree 3 files changed +46
-9
lines changed Original file line number Diff line number Diff line change 11# Changes here will be overwritten by Copier
2- _commit : 9498b78
2+ _commit : 6ce048e
33_src_path : https://github.com/python-project-templates/base.git
44add_docs : true
55add_extension : rustjswasm
Original file line number Diff line number Diff line change @@ -106,6 +106,20 @@ jobs:
106106 CIBW_ENVIRONMENT_MACOS : MACOSX_DEPLOYMENT_TARGET=11.0
107107 if : matrix.os != 'ubuntu-latest'
108108
109+ - name : Test wheel install
110+ run : |
111+ python -m venv /tmp/test-wheel
112+ /tmp/test-wheel/bin/pip install dist/*.whl
113+ /tmp/test-wheel/bin/python -c "import python_template_rust"
114+ if : matrix.os == 'ubuntu-latest'
115+
116+ - name : Test sdist install
117+ run : |
118+ python -m venv /tmp/test-sdist
119+ /tmp/test-sdist/bin/pip install dist/*.tar.gz
120+ /tmp/test-sdist/bin/python -c "import python_template_rust"
121+ if : matrix.os == 'ubuntu-latest'
122+
109123 - uses : actions/upload-artifact@v7
110124 with :
111125 name : dist-${{matrix.os}}
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- - uses : actions-ext/rust/setup@main
17- - uses : actions-ext/node/setup@main
18- - run : make develop
19- - run : uv pip install .
20- - run : uv pip install yardang
21+
22+ - name : Download dist from build
23+ uses : actions/download-artifact@v7
24+ with :
25+ name : dist-ubuntu-latest
26+ path : dist
27+ run-id : ${{ github.event.workflow_run.id }}
28+ if : github.event_name == 'workflow_run'
29+
30+ - name : Install from wheel
31+ run : |
32+ uv pip install dist/*.whl
33+ uv pip install yardang
34+ if : github.event_name == 'workflow_run'
35+
36+ - name : Install from source (manual trigger)
37+ run : |
38+ make develop
39+ uv pip install .
40+ uv pip install yardang
41+ if : github.event_name == 'workflow_dispatch'
42+
2143 - run : yardang build
44+
2245 - uses : peaceiris/actions-gh-pages@v4
2346 with :
2447 publish_branch : gh-pages
You can’t perform that action at this time.
0 commit comments