This repository was archived by the owner on Mar 13, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-15
lines changed
Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -126,29 +126,20 @@ jobs:
126126 context : .
127127 labels : ${{ steps.meta.outputs.labels }}
128128
129- - name : Check runtime
129+ - name : Test cli works in runtime image
130130 run : for i in ${{ steps.meta.outputs.tags }}; do docker run ${i} --version; done
131131
132+ - name : Test cli works in sdist installed in local python
133+ # ${GITHUB_REPOSITORY##*/} is the repo name without org
134+ # Replace this with the cli command if different to the repo name
135+ run : pip install dist/*.gz && ${GITHUB_REPOSITORY##*/} --version
136+
132137 - name : Upload build files
133138 uses : actions/upload-artifact@v3
134139 with :
135140 name : dist
136141 path : dist
137142
138- sdist :
139- needs : container
140- runs-on : ubuntu-latest
141-
142- steps :
143- - uses : actions/download-artifact@v3
144-
145- - name : Install sdist in a venv and check cli works
146- # ${GITHUB_REPOSITORY##*/} is the repo name without org
147- # Replace this with the cli command if different to the repo name
148- run : |
149- pip install dist/*.gz
150- ${GITHUB_REPOSITORY##*/} --version
151-
152143 release :
153144 # upload to PyPI and make a release on every tag
154145 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
You can’t perform that action at this time.
0 commit comments